diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2011-03-10 22:20:35 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2011-03-10 22:20:35 +0000 |
commit | d58c5e2821018930d253ef090ced322cf4dd53e3 (patch) | |
tree | 5895fc700e36be5faca3efe976f30bb0168c5af4 /pkgs/applications/audio/gmu | |
parent | e7ed35ecd84edfc427bfd22b47ee29f80d603b98 (diff) |
Adding GMU, a music player for small portable devices, written in SDL.
svn path=/nixpkgs/trunk/; revision=26266
Diffstat (limited to 'pkgs/applications/audio/gmu')
-rw-r--r-- | pkgs/applications/audio/gmu/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/applications/audio/gmu/default.nix b/pkgs/applications/audio/gmu/default.nix new file mode 100644 index 0000000000000..bdda1c6d8d96c --- /dev/null +++ b/pkgs/applications/audio/gmu/default.nix @@ -0,0 +1,35 @@ +{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 + ensureDir $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"; + license = "GPLv2"; + }; +} |