emulationstation-de: 2.2.1 -> 3.0.2 (#299298)

This commit is contained in:
Thiago Kenji Okada 2024-11-29 22:38:24 +00:00 committed by GitHub
commit 79a75faeb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,13 +15,13 @@
SDL2
}:
stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
pname = "emulationstation-de";
version = "2.2.1";
version = "3.0.2";
src = fetchzip {
url = "https://gitlab.com/es-de/emulationstation-de/-/archive/v2.2.1/emulationstation-de-v2.2.1.tar.gz";
hash = "sha256:1kp9p3fndnx4mapgfvy742zwisyf0y5k57xkqkis0kxyibx0z8i6";
url = "https://gitlab.com/es-de/emulationstation-de/-/archive/v${finalAttrs.version}/emulationstation-de-v${finalAttrs.version}.tar.gz";
hash = "sha256:RGlXFybbXYx66Hpjp2N3ovK4T5VyS4w0DWRGNvbwugs=";
};
patches = [ ./001-add-nixpkgs-retroarch-cores.patch ];
@ -44,8 +44,25 @@ stdenv.mkDerivation {
];
installPhase = ''
install -D ../emulationstation $out/bin/emulationstation
cp -r ../resources/ $out/bin/resources/
# Binary
install -D ../es-de $out/bin/es-de
# Resources
mkdir -p $out/share/es-de/
cp -r ../resources/ $out/share/es-de/resources/
# Desktop file
mkdir -p $out/share/applications
cp ../es-app/assets/org.es_de.frontend.desktop $out/share/applications/
# Icon
mkdir -p $out/share/icons/hicolor/scalable/apps
cp ../es-app/assets/org.es_de.frontend.svg $out/share/icons/hicolor/scalable/apps/
'';
postInstall = ''
substituteInPlace $out/share/applications/org.es_de.frontend.desktop \
--replace "Exec=es-de" "Exec=$out/bin/es-de"
'';
meta = {
@ -54,6 +71,6 @@ stdenv.mkDerivation {
maintainers = with lib.maintainers; [ ivarmedi ];
license = lib.licenses.mit;
platforms = lib.platforms.linux;
mainProgram = "emulationstation";
mainProgram = "es-de";
};
}
})