fix(module/emulationstation-de): fix package build
This commit is contained in:
parent
2a6f6281a1
commit
0ce379c5e8
|
@ -44,6 +44,7 @@ in {
|
||||||
(_: super: {
|
(_: super: {
|
||||||
"2i-emulator" = super.callPackage ../pkgs/2i-emulator.nix {};
|
"2i-emulator" = super.callPackage ../pkgs/2i-emulator.nix {};
|
||||||
darkman = super.callPackage ../pkgs/darkman.nix {};
|
darkman = super.callPackage ../pkgs/darkman.nix {};
|
||||||
|
emulationstation-de = lib.warn "I'm overriding emulationstation-de. Keep a look out for updates, will ya?" (super.callPackage ../pkgs/emulationstation-de.nix {});
|
||||||
hack-nerdfont = super.nerdfonts.override {fonts = ["Hack"];};
|
hack-nerdfont = super.nerdfonts.override {fonts = ["Hack"];};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
|
@ -17,7 +17,7 @@ in
|
||||||
extraPkgs = pkgs:
|
extraPkgs = pkgs:
|
||||||
with pkgs; [
|
with pkgs; [
|
||||||
jq
|
jq
|
||||||
gnome.zenity
|
zenity
|
||||||
unzip
|
unzip
|
||||||
bash
|
bash
|
||||||
fuse
|
fuse
|
||||||
|
|
78
pkgs/emulationstation-de.nix
Normal file
78
pkgs/emulationstation-de.nix
Normal file
|
@ -0,0 +1,78 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
alsa-lib,
|
||||||
|
cmake,
|
||||||
|
curl,
|
||||||
|
fetchzip,
|
||||||
|
ffmpeg,
|
||||||
|
freeimage,
|
||||||
|
freetype,
|
||||||
|
harfbuzz,
|
||||||
|
icu,
|
||||||
|
libgit2,
|
||||||
|
pkg-config,
|
||||||
|
poppler,
|
||||||
|
pugixml,
|
||||||
|
SDL2,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
version = "3.1.0";
|
||||||
|
hash = "sha256-v9nOY9T5VOVLBUKoDXqwYa1iYvW42iGA+3kpPUOmHkg=";
|
||||||
|
in stdenv.mkDerivation {
|
||||||
|
pname = "emulationstation-de";
|
||||||
|
inherit version;
|
||||||
|
|
||||||
|
src = fetchzip {
|
||||||
|
url = "https://gitlab.com/es-de/emulationstation-de/-/archive/v${version}/emulationstation-de-v${version}.tar.gz";
|
||||||
|
inherit hash;
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [ ./emulationstation-de.patch ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
alsa-lib
|
||||||
|
curl
|
||||||
|
ffmpeg
|
||||||
|
freeimage
|
||||||
|
freetype
|
||||||
|
harfbuzz
|
||||||
|
icu
|
||||||
|
libgit2
|
||||||
|
poppler
|
||||||
|
pugixml
|
||||||
|
SDL2
|
||||||
|
];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
install -D ../es-de $out/bin/es-de
|
||||||
|
install -D ../es-pdf-convert $out/bin/es-pdf-convert
|
||||||
|
install -D ../LICENSE $out/share/es-de/LICENSE
|
||||||
|
install -D ../es-app/assets/es-de.6.gz $out/share/man/man6/es-de.6.gz
|
||||||
|
install -D ../es-app/assets/org.es_de.frontend.desktop $out/share/applications/org.es_de.frontend.desktop
|
||||||
|
install -D ../es-app/assets/org.es_de.frontend.appdata.xml $out/share/metainfo/org.es_de.frontend.appdata.xml
|
||||||
|
install -D ../es-app/assets/org.es_de.frontend.svg $out/share/icons/hicolor/scalable/apps/org.es_de.frontend.svg
|
||||||
|
install -D ../es-app/assets/org.es_de.frontend.svg $out/share/pixmaps/org.es_de.frontend.svg
|
||||||
|
|
||||||
|
mkdir -p $out/share/es-de/
|
||||||
|
cp -r ../licenses/ $out/share/es-de/licenses/
|
||||||
|
cp -r ../themes/ $out/share/es-de/themes/
|
||||||
|
cp -r ../resources/ $out/share/es-de/resources/
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "EmulationStation Desktop Edition is a frontend for browsing and launching games from your multi-platform game collection";
|
||||||
|
homepage = "https://es-de.org";
|
||||||
|
maintainers = with lib.maintainers; [ ivarmedi ];
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
platforms = lib.platforms.linux;
|
||||||
|
mainProgram = "emulationstation";
|
||||||
|
};
|
||||||
|
}
|
18
pkgs/emulationstation-de.patch
Normal file
18
pkgs/emulationstation-de.patch
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
--- a/resources/systems/unix/es_find_rules.xml
|
||||||
|
+++ b/resources/systems/unix/es_find_rules.xml
|
||||||
|
@@ -19,6 +19,8 @@
|
||||||
|
<entry>~/.config/retroarch/cores</entry>
|
||||||
|
<!-- FreeBSD repository -->
|
||||||
|
<entry>/usr/local/lib/libretro</entry>
|
||||||
|
+ <!-- NixOS / Nixpkgs -->
|
||||||
|
+ <entry>/run/current-system/sw/lib/retroarch/cores</entry>
|
||||||
|
</rule>
|
||||||
|
</core>
|
||||||
|
<emulator name="ADVANCEMAME">
|
||||||
|
@@ -667,4 +669,4 @@
|
||||||
|
<entry>~/bin/ZEsarUX/zesarux</entry>
|
||||||
|
</rule>
|
||||||
|
</emulator>
|
||||||
|
-</ruleList>
|
||||||
|
\ No newline at end of file
|
||||||
|
+</ruleList>
|
Loading…
Reference in a new issue