2011-03-10 23:20:35 +01:00
|
|
|
{stdenv, fetchurl, SDL, SDL_gfx, SDL_image, tremor, flac, mpg123, libmikmod
|
|
|
|
, speex
|
|
|
|
, keymap ? "newdefault"
|
|
|
|
, conf ? "unknown"
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gmu-0.7.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://wejp.k.vu/files/gmu-0.7.2.tar.gz;
|
|
|
|
sha256 = "0gvhwhhlj64lc425wqch4g6v59ldd5i3rxll3zdcrdgk2vkh8nys";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ SDL SDL_gfx SDL_image tremor flac mpg123 libmikmod speex ];
|
|
|
|
|
|
|
|
NIX_LDFLAGS = "-lgcc_s";
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
makeFlags="$makeFlags PREFIX=$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 = {
|
|
|
|
homepage = http://wejp.k.vu/projects/gmu;
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|