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