freedoom: look up wads in nix store

The default freedoom script looks in FHS locations which is not useful
when running the nixpkgs version.

Signed-off-by: Marcin Serwin <marcin@serwin.dev>
This commit is contained in:
Marcin Serwin
2026-06-04 16:00:05 +02:00
parent 64fff67d3d
commit cd0853c3d1
+6
View File
@@ -20,6 +20,12 @@ stdenvNoCC.mkDerivation (finalAttrs: {
hash = "sha256-uOLyh/epVxv3/N+6P1glBX1ZkGWzHWGaERYZRSL/3AU=";
};
postPatch = ''
substituteInPlace dist/freedoom \
--replace-fail 'DOOMWADPATH="$(echo "''${PATHS[@]}" | tr '"' '"' :)"' \
"DOOMWADPATH=$out/share/games/doom"
'';
strictDeps = true;
nativeBuildInputs = [