emulationstation-de: 2.2.1 -> 3.0.2 (#299298)
This commit is contained in:
commit
79a75faeb9
@ -15,13 +15,13 @@
|
|||||||
SDL2
|
SDL2
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "emulationstation-de";
|
pname = "emulationstation-de";
|
||||||
version = "2.2.1";
|
version = "3.0.2";
|
||||||
|
|
||||||
src = fetchzip {
|
src = fetchzip {
|
||||||
url = "https://gitlab.com/es-de/emulationstation-de/-/archive/v2.2.1/emulationstation-de-v2.2.1.tar.gz";
|
url = "https://gitlab.com/es-de/emulationstation-de/-/archive/v${finalAttrs.version}/emulationstation-de-v${finalAttrs.version}.tar.gz";
|
||||||
hash = "sha256:1kp9p3fndnx4mapgfvy742zwisyf0y5k57xkqkis0kxyibx0z8i6";
|
hash = "sha256:RGlXFybbXYx66Hpjp2N3ovK4T5VyS4w0DWRGNvbwugs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./001-add-nixpkgs-retroarch-cores.patch ];
|
patches = [ ./001-add-nixpkgs-retroarch-cores.patch ];
|
||||||
@ -44,8 +44,25 @@ stdenv.mkDerivation {
|
|||||||
];
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -D ../emulationstation $out/bin/emulationstation
|
# Binary
|
||||||
cp -r ../resources/ $out/bin/resources/
|
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 = {
|
meta = {
|
||||||
@ -54,6 +71,6 @@ stdenv.mkDerivation {
|
|||||||
maintainers = with lib.maintainers; [ ivarmedi ];
|
maintainers = with lib.maintainers; [ ivarmedi ];
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
platforms = lib.platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
mainProgram = "emulationstation";
|
mainProgram = "es-de";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user