fix: drop weird package that was caused by stupidity

This commit is contained in:
Malte Tammena 2024-11-01 14:48:37 +01:00
parent 95d422c9b4
commit 51afc6542d
2 changed files with 76 additions and 73 deletions

View file

@ -15,13 +15,34 @@
poppler,
pugixml,
SDL2,
writeText,
...
}:
let
}: let
version = "3.1.0";
hash = "sha256-v9nOY9T5VOVLBUKoDXqwYa1iYvW42iGA+3kpPUOmHkg=";
in stdenv.mkDerivation {
patch = writeText "emulationstation-de.patch" ''
--- 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>
'';
in
stdenv.mkDerivation {
pname = "emulationstation-de";
inherit version;
@ -30,7 +51,7 @@ in stdenv.mkDerivation {
inherit hash;
};
patches = [ ./emulationstation-de.patch ];
patches = [patch];
nativeBuildInputs = [
cmake

View file

@ -1,18 +0,0 @@
--- 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>