summary refs log tree commit diff
path: root/pkgs/misc/emulators/retroarch/default.nix
blob: a98e6db2db4b6018cd19c3143b12e4685652e1c0 (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
{ stdenv, fetchurl, pkgconfig, which
, SDL, mesa, alsaLib
}:

stdenv.mkDerivation rec {
  name = "retroarch-0.9.9";

  src = fetchurl {
    url = "http://themaister.net/retroarch-dl/${name}.tar.gz";
    sha256 = "08xlndpl14c4ccgp752ixx3a7ajf3xp93nawhinwxq0cw801prda";
  };

  buildInputs = [
    pkgconfig which SDL mesa alsaLib
  ];

  preConfigure = ''
    configureFlags="--global-config-dir=$out/etc"
  '';

  meta = {
    description = "A cross-platform multi-system emulator";
    homepage = "http://themaister.net/retroarch.html";
    license = stdenv.lib.licenses.gpl3Plus;
    platform = stdenv.lib.platforms.linux;
  };
}