Attempt at compiling MilkyTracker, but recent zlib version may have broken it.

There's a zlib version included with milkytracker,
but there's no makefiles for it. I've only included
the header here, but it fails at link-time with
several 'undefined reference' errors, which simply
means it can't find the definitions, e.g. compiled
zlib.
There's bug reports on other package systems although
unfortunately still unresolved.
https://bugs.archlinux.org/task/31324
http://lists.freebsd.org/pipermail/freebsd-ports/2013-March/082180.html

+51
+49
pkgs/applications/audio/milkytracker/default.nix
··· 1 + { stdenv, fetchurl, alsaLib, SDL, automake, autoconf, perl}: 2 + 3 + stdenv.mkDerivation rec { 4 + version = "0.90.85"; 5 + name = "milkytracker-${version}"; 6 + 7 + src = fetchurl { 8 + url = "http://milkytracker.org/files/milkytracker-0.90.85.tar.gz"; 9 + sha256 = "184pk0k9nv461a61sh6lb62wfadjwwk8ri3z5kpdbqnyssz0zfpv"; 10 + }; 11 + 12 + # Get two official patches. 13 + no_zzip_patch = fetchurl { 14 + url = "http://www.milkytracker.org/files/patches-0.90.85/no_zziplib_dep.patch"; 15 + sha256 = "1w550q7pxa7w6v2v19ljk03hayacrs6y887izg11a1983wk7qzb3"; 16 + }; 17 + 18 + fix_64bit_patch = fetchurl { 19 + url = "http://www.milkytracker.org/files/patches-0.90.85/64bit_freebsd_fix.patch"; 20 + sha256 = "0gwd4zslbd8kih80k4v7n2c65kvm2cq3kl6d7y33z1l007vzyvf6"; 21 + }; 22 + 23 + preConfigure = '' 24 + patch ./src/tracker/sdl/SDL_Main.cpp < ${fix_64bit_patch} 25 + patch < ${no_zzip_patch} 26 + ''; 27 + 28 + # There's a zlib version included with milkytracker, 29 + # but there's no makefiles for it. I've only included 30 + # the header here, but it fails at link-time with 31 + # several 'undefined reference' errors, which simply 32 + # means it can't find the definitions, e.g. compiled 33 + # zlib. 34 + # There's bug reports on other package systems although 35 + # unfortunately still unresolved. 36 + # https://bugs.archlinux.org/task/31324 37 + # http://lists.freebsd.org/pipermail/freebsd-ports/2013-March/082180.html 38 + preBuild='' 39 + export CPATH="`pwd`/src/compression/zlib/generic" 40 + ''; 41 + 42 + buildInputs = [ alsaLib SDL automake autoconf perl]; 43 + 44 + meta = { 45 + description = "Music tracker application, similar to Fasttracker II."; 46 + homepage = http://milkytracker.org; 47 + license = "GPLv3"; 48 + }; 49 + }
+2
pkgs/top-level/all-packages.nix
··· 7358 7358 7359 7359 audacity = callPackage ../applications/audio/audacity { }; 7360 7360 7361 + milkytracker = callPackage ../applications/audio/milkytracker { }; 7362 + 7361 7363 aumix = callPackage ../applications/audio/aumix { 7362 7364 gtkGUI = false; 7363 7365 };