summary refs log tree commit diff
path: root/pkgs/applications/audio/gmu/default.nix
blob: 8446855d190c3a9339767b5c860f0fc97b676efd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{stdenv, fetchurl, SDL, SDL_gfx, SDL_image, tremor, flac, mpg123, libmikmod
, speex, ncurses
, keymap ? "default"
, conf ? "unknown"
}:

stdenv.mkDerivation rec {
  name = "gmu-0.10.1";

  src = fetchurl {
    url = "http://wejp.k.vu/files/${name}.tar.gz";
    sha256 = "03x0mc0xw2if0bpf0a15yprcyx1xccki039zvl2099dagwk6xskv";
  };

  buildInputs = [ SDL SDL_gfx SDL_image tremor flac mpg123 libmikmod speex ncurses ];

  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";
    license = stdenv.lib.licenses.gpl2;
  };
}