summary refs log tree commit diff
path: root/pkgs/applications/emulators/emulationstation/default.nix
blob: f0434ecdedf4de0edaef2a39ccf34a1a47a99cfa (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
32
33
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, curl, boost, eigen
, freeimage, freetype, libGLU, libGL, rapidjson, SDL2, alsa-lib
, vlc }:

stdenv.mkDerivation {
  pname = "emulationstation";
  version = "2.11.2";

  src = fetchFromGitHub {
    fetchSubmodules = true;
    owner = "RetroPie";
    repo = "EmulationStation";
    rev = "cda7de687924c4c1ab83d6b0ceb88aa734fe6cfe";
    hash = "sha256-J5h/578FVe4DXJx/AvpRnCIUpqBeFtmvFhUDYH5SErQ=";
  };

  nativeBuildInputs = [ pkg-config cmake ];
  buildInputs = [ alsa-lib boost curl eigen freeimage freetype libGLU libGL rapidjson SDL2 vlc ];

  installPhase = ''
    install -D ../emulationstation $out/bin/emulationstation
    cp -r ../resources/ $out/bin/resources/
  '';

  meta = {
    description = "A flexible emulator front-end supporting keyboardless navigation and custom system themes";
    homepage = "https://emulationstation.org";
    maintainers = [ lib.maintainers.edwtjo ];
    license = lib.licenses.mit;
    platforms = lib.platforms.linux;
    mainProgram = "emulationstation";
  };
}