3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/gmu/default.nix

32 lines
858 B
Nix
Raw Normal View History

2021-01-15 13:21:58 +00:00
{lib, stdenv, fetchurl, SDL, SDL_gfx, SDL_image, tremor, flac, mpg123, libmikmod
2017-01-19 23:29:59 +00:00
, speex, ncurses
, keymap ? "default"
, conf ? "unknown"
}:
stdenv.mkDerivation rec {
2017-01-19 23:29:59 +00:00
name = "gmu-0.10.1";
src = fetchurl {
2017-01-19 23:29:59 +00:00
url = "http://wejp.k.vu/files/${name}.tar.gz";
sha256 = "03x0mc0xw2if0bpf0a15yprcyx1xccki039zvl2099dagwk6xskv";
};
2017-01-19 23:29:59 +00:00
buildInputs = [ SDL SDL_gfx SDL_image tremor flac mpg123 libmikmod speex ncurses ];
2017-01-19 23:29:59 +00:00
makeFlags = [ "PREFIX=$(out)" ];
postInstall = ''
cp ${keymap}.keymap $out/share/gmu/default.keymap
cp gmuinput.${conf}.conf $out/share/gmu/gmuinput.conf
mkdir -p $out/etc/gmu
cp gmu.${conf}.conf $out/etc/gmu/gmu.conf
'';
meta = {
homepage = "http://wejp.k.vu/projects/gmu";
description = "Open source music player for portable gaming consoles and handhelds";
2021-01-15 13:21:58 +00:00
license = lib.licenses.gpl2;
};
}