2021-01-19 07:50:56 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, makeWrapper
|
2018-09-13 06:21:08 +02:00
|
|
|
, SDL2, alsaLib, libjack2, lhasa, perl, rtmidi, zlib, zziplib }:
|
2013-10-29 17:14:53 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-12-12 15:31:57 +01:00
|
|
|
version = "1.03.00";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "milkytracker";
|
2013-10-29 17:14:53 +01:00
|
|
|
|
2018-09-13 06:21:08 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "milkytracker";
|
|
|
|
repo = "MilkyTracker";
|
|
|
|
rev = "v${version}";
|
2020-12-12 15:31:57 +01:00
|
|
|
sha256 = "025fj34gq2kmkpwcswcyx7wdxb89vm944dh685zi4bxx0hz16vvk";
|
2013-10-29 17:14:53 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ cmake pkg-config makeWrapper ];
|
2017-08-31 02:50:17 +02:00
|
|
|
|
2018-09-13 06:21:08 +02:00
|
|
|
buildInputs = [ SDL2 alsaLib libjack2 lhasa perl rtmidi zlib zziplib ];
|
2013-10-29 17:14:53 +01:00
|
|
|
|
2020-02-18 08:53:48 +01:00
|
|
|
# Somehow this does not get set automatically
|
|
|
|
cmakeFlags = [ "-DSDL2MAIN_LIBRARY=${SDL2}/lib/libSDL2.so" ];
|
|
|
|
|
2020-12-09 12:50:58 +01:00
|
|
|
postInstall = ''
|
|
|
|
install -Dm644 $src/resources/milkytracker.desktop $out/share/applications/milkytracker.desktop
|
|
|
|
install -Dm644 $src/resources/pictures/carton.png $out/share/pixmaps/milkytracker.png
|
|
|
|
install -Dm644 $src/resources/milkytracker.appdata $out/share/appdata/milkytracker.appdata.xml
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2014-11-11 14:20:43 +01:00
|
|
|
description = "Music tracker application, similar to Fasttracker II";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://milkytracker.org";
|
2018-09-13 06:21:08 +02:00
|
|
|
license = licenses.gpl3Plus;
|
2013-11-07 11:05:13 +01:00
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
2018-09-13 06:21:08 +02:00
|
|
|
maintainers = with maintainers; [ zoomulator ];
|
2013-10-29 17:14:53 +01:00
|
|
|
};
|
|
|
|
}
|