e16: fix e_gen_menu script for NixOS

This commit is contained in:
Rayne
2024-06-24 08:24:13 +10:00
parent b555d32cea
commit 69074b67a3
@@ -16,6 +16,7 @@
, libsndfile
, pango
, perl
, python3
, gitUpdater
}:
@@ -47,10 +48,13 @@ stdenv.mkDerivation rec {
libsndfile
pango
perl
python3
];
postPatch = ''
substituteInPlace scripts/e_gen_menu --replace "/usr/local:" "/run/current-system/sw:/usr/local:"
substituteInPlace scripts/e_gen_menu --replace "'/opt'" "'/opt', '/run/current-system/sw'"
substituteInPlace scripts/e_gen_menu --replace "'/.local'" "'/.nix-profile', '/.local'"
'';
passthru.updateScript = gitUpdater {