1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

e16: fix e_gen_menu script for NixOS

This commit is contained in:
Rayne 2024-06-23 17:03:45 +10:00
parent b555d32cea
commit 69074b67a3

View file

@ -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 {