nixpkgs/pkgs/applications/audio/milkytracker/default.nix

36 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, makeWrapper
, SDL2, alsa-lib, libjack2, lhasa, perl, rtmidi, zlib, zziplib }:
stdenv.mkDerivation rec {
2020-12-12 14:31:57 +00:00
version = "1.03.00";
pname = "milkytracker";
2018-09-13 04:21:08 +00:00
src = fetchFromGitHub {
owner = "milkytracker";
repo = "MilkyTracker";
rev = "v${version}";
2020-12-12 14:31:57 +00:00
sha256 = "025fj34gq2kmkpwcswcyx7wdxb89vm944dh685zi4bxx0hz16vvk";
};
nativeBuildInputs = [ cmake pkg-config makeWrapper ];
2017-08-31 00:50:17 +00:00
buildInputs = [ SDL2 alsa-lib libjack2 lhasa perl rtmidi zlib zziplib ];
# Somehow this does not get set automatically
cmakeFlags = [ "-DSDL2MAIN_LIBRARY=${SDL2}/lib/libSDL2.so" ];
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
'';
meta = with lib; {
2014-11-11 13:20:43 +00:00
description = "Music tracker application, similar to Fasttracker II";
2021-12-31 18:50:30 +00:00
homepage = "https://milkytracker.org/";
2018-09-13 04:21:08 +00:00
license = licenses.gpl3Plus;
2013-11-07 10:05:13 +00:00
platforms = [ "x86_64-linux" "i686-linux" ];
maintainers = with maintainers; [];
};
}