1{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, curl, boost169, eigen
2, freeimage, freetype, libGLU, libGL, SDL2, alsa-lib, libarchive
3, fetchpatch }:
4
5stdenv.mkDerivation {
6 pname = "emulationstation";
7 version = "2.0.1a";
8
9 src = fetchFromGitHub {
10 owner = "Aloshi";
11 repo = "EmulationStation";
12 rev = "646bede3d9ec0acf0ae378415edac136774a66c5";
13 sha256 = "0cm0sq2wri2l9cvab1l0g02za59q7klj0h3p028vr96n6njj4w9v";
14 };
15
16 patches = [
17 (fetchpatch {
18 url = "https://github.com/Aloshi/EmulationStation/commit/49ccd8fc7a7b1dfd974fc57eb13317c42842f22c.patch";
19 sha256 = "1v5d81l7bav0k5z4vybrc3rjcysph6lkm5pcfr6m42wlz7jmjw0p";
20 })
21 ];
22
23 nativeBuildInputs = [ pkg-config cmake ];
24 buildInputs = [ alsa-lib boost169 curl eigen freeimage freetype libarchive libGLU libGL SDL2 ];
25
26 installPhase = ''
27 install -D ../emulationstation $out/bin/emulationstation
28 '';
29
30 meta = {
31 description = "A flexible emulator front-end supporting keyboardless navigation and custom system themes";
32 homepage = "https://emulationstation.org";
33 maintainers = [ lib.maintainers.edwtjo ];
34 license = lib.licenses.mit;
35 platforms = lib.platforms.linux;
36 };
37}