2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, makeWrapper
|
2021-06-28 23:13:55 +00:00
|
|
|
, SDL2, alsa-lib, libjack2, lhasa, perl, rtmidi, zlib, zziplib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-01-05 17:05:55 +00:00
|
|
|
version = "1.03.00";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "milkytracker";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "milkytracker";
|
|
|
|
repo = "MilkyTracker";
|
|
|
|
rev = "v${version}";
|
2021-01-05 17:05:55 +00:00
|
|
|
sha256 = "025fj34gq2kmkpwcswcyx7wdxb89vm944dh685zi4bxx0hz16vvk";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
buildInputs = [ SDL2 alsa-lib libjack2 lhasa perl rtmidi zlib zziplib ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Somehow this does not get set automatically
|
|
|
|
cmakeFlags = [ "-DSDL2MAIN_LIBRARY=${SDL2}/lib/libSDL2.so" ];
|
|
|
|
|
2020-12-25 13:55:36 +00: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-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Music tracker application, similar to Fasttracker II";
|
|
|
|
homepage = "http://milkytracker.org";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
|
|
|
maintainers = with maintainers; [ zoomulator ];
|
|
|
|
};
|
|
|
|
}
|