2015-06-27 10:17:52 +03:00
|
|
|
{ stdenv, fetchurl, SDL, alsaLib, autoconf, automake, libjack2, perl
|
2013-10-30 03:07:18 +04:00
|
|
|
, zlib, zziplib
|
|
|
|
}:
|
2013-10-29 20:14:53 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.90.85";
|
|
|
|
name = "milkytracker-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://milkytracker.org/files/milkytracker-0.90.85.tar.gz";
|
|
|
|
sha256 = "184pk0k9nv461a61sh6lb62wfadjwwk8ri3z5kpdbqnyssz0zfpv";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Get two official patches.
|
|
|
|
no_zzip_patch = fetchurl {
|
|
|
|
url = "http://www.milkytracker.org/files/patches-0.90.85/no_zziplib_dep.patch";
|
|
|
|
sha256 = "1w550q7pxa7w6v2v19ljk03hayacrs6y887izg11a1983wk7qzb3";
|
|
|
|
};
|
|
|
|
|
|
|
|
fix_64bit_patch = fetchurl {
|
|
|
|
url = "http://www.milkytracker.org/files/patches-0.90.85/64bit_freebsd_fix.patch";
|
|
|
|
sha256 = "0gwd4zslbd8kih80k4v7n2c65kvm2cq3kl6d7y33z1l007vzyvf6";
|
|
|
|
};
|
|
|
|
|
2013-10-30 03:00:46 +04:00
|
|
|
patchPhase = ''
|
|
|
|
patch ./src/tracker/sdl/SDL_Main.cpp < ${fix_64bit_patch}
|
|
|
|
patch < ${no_zzip_patch}
|
|
|
|
patch ./src/compression/DecompressorGZIP.cpp < ${./decompressor_gzip.patch}
|
2013-10-29 20:14:53 +04:00
|
|
|
'';
|
|
|
|
|
|
|
|
preBuild=''
|
2013-10-30 03:00:46 +04:00
|
|
|
export CPATH=${zlib}/lib
|
2013-10-29 20:14:53 +04:00
|
|
|
'';
|
|
|
|
|
2015-06-27 10:17:52 +03:00
|
|
|
buildInputs = [ SDL alsaLib autoconf automake libjack2 perl zlib zziplib ];
|
2013-10-29 20:14:53 +04:00
|
|
|
|
|
|
|
meta = {
|
2014-11-11 16:20:43 +03:00
|
|
|
description = "Music tracker application, similar to Fasttracker II";
|
2013-10-29 20:14:53 +04:00
|
|
|
homepage = http://milkytracker.org;
|
2013-10-30 03:07:18 +04:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2013-11-07 14:05:13 +04:00
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
2013-11-07 15:59:45 +04:00
|
|
|
maintainers = [ stdenv.lib.maintainers.zoomulator ];
|
2013-10-29 20:14:53 +04:00
|
|
|
};
|
|
|
|
}
|