2023-07-15 17:15:38 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, curl, boost, eigen
|
2023-10-19 13:55:26 +00:00
|
|
|
, freeimage, freetype, libGLU, libGL, rapidjson, SDL2, alsa-lib
|
|
|
|
, vlc }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "emulationstation";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "2.11.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-10-19 13:55:26 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
owner = "RetroPie";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "EmulationStation";
|
2023-10-19 13:55:26 +00:00
|
|
|
rev = "cda7de687924c4c1ab83d6b0ceb88aa734fe6cfe";
|
|
|
|
hash = "sha256-J5h/578FVe4DXJx/AvpRnCIUpqBeFtmvFhUDYH5SErQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
2023-10-19 13:55:26 +00:00
|
|
|
buildInputs = [ alsa-lib boost curl eigen freeimage freetype libGLU libGL rapidjson SDL2 vlc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D ../emulationstation $out/bin/emulationstation
|
2023-10-19 13:55:26 +00:00
|
|
|
cp -r ../resources/ $out/bin/resources/
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A flexible emulator front-end supporting keyboardless navigation and custom system themes";
|
|
|
|
homepage = "https://emulationstation.org";
|
2021-01-17 00:15:33 +00:00
|
|
|
maintainers = [ lib.maintainers.edwtjo ];
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.linux;
|
2023-08-04 22:07:22 +00:00
|
|
|
mainProgram = "emulationstation";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|