summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/emulators/mame
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2022-12-06 19:18:35 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2022-12-06 19:24:50 -0300
commit9a7e20255be15ce8ac45bf34d906ad7b21e7a725 (patch)
tree9f436219ec84fba67a83cd10b7a262abd13fa929 /pkgs/applications/emulators/mame
parent83d89a2fadf3ce1f67cfc5e49e62e474df04507b (diff)
mame: revert the use of substituteAll to substituteInPlace
Diffstat (limited to 'pkgs/applications/emulators/mame')
-rw-r--r--pkgs/applications/emulators/mame/default.nix13
1 files changed, 8 insertions, 5 deletions
diff --git a/pkgs/applications/emulators/mame/default.nix b/pkgs/applications/emulators/mame/default.nix
index db2dff5f188d..760b9e63d282 100644
--- a/pkgs/applications/emulators/mame/default.nix
+++ b/pkgs/applications/emulators/mame/default.nix
@@ -27,7 +27,6 @@
, qtbase
, rapidjson
, sqlite
-, substituteAll
, utf8proc
, which
, writeScript
@@ -108,12 +107,16 @@ stdenv.mkDerivation rec {
# by default MAME assumes that paths with stock resources are relative and
# that you run MAME changing to install directory, so we add absolute paths
# here
- (substituteAll {
- mamePath = "$out/opt/mame";
- src = ./001-use-absolute-paths.diff;
- })
+ ./001-use-absolute-paths.diff
];
+ # Since the bug described in https://github.com/NixOS/nixpkgs/issues/135438,
+ # it is not possible to use substituteAll
+ postPatch = ''
+ substituteInPlace src/emu/emuopts.cpp \
+ --subst-var-by mamePath "$out/opt/mame"
+ '';
+
desktopItems = [
(makeDesktopItem {
name = "MAME";