summary refs log tree commit diff
path: root/pkgs/misc/emulators/retroarch/default.nix
blob: 8bc53da8f0c8ac16579b0225e9801b510dbb1c95 (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, fetchgit, pkgconfig, which
, SDL, mesa, alsaLib
, libXxf86vm, libXinerama, libXv
}:

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

  src = fetchgit {
    url = "https://github.com/libretro/RetroArch.git";
    rev = "ea0c4880556e0f9d1fe8253ddc713bc743b00e1b";
    sha256 = "1jhyh7f8ijy67fxslxqsp8pjl2lwayjljp06hp4n5cn33yajpbd7";
  };

  buildInputs = [
    pkgconfig which SDL mesa alsaLib
    libXxf86vm libXinerama libXv
  ];

  preConfigure = ''
    configureFlags="--global-config-dir=$out/etc"
  '';
 
  meta = {
    description = "Modular multi-system game/emulator system";
    homepage = "http://www.libretro.com/";
    license = stdenv.lib.licenses.gpl3Plus;
    platforms = stdenv.lib.platforms.linux;
    maintainers = with stdenv.lib.maintainers; [ iyzsong ];
  };
}