fix(nix): replace prefix wrapping with suffix

Swapped `--prefix` with `--suffix` according to the NixOS manual: https://nixos.org/manual/nixpkgs/stable/#fun-makeWrapper
Using prefix essentially hardcodes dependencies without a fallback, and these dependencies are only needed during runtime.
This commit is contained in:
Xarvex
2025-09-10 16:28:41 -05:00
parent e94ef20108
commit 1e5334e76a
2 changed files with 3 additions and 3 deletions

View File

@@ -55,14 +55,14 @@ python3Packages.buildPythonApplication {
dontWrapGApps = true;
dontWrapQtApps = true;
makeWrapperArgs = [
"--prefix PATH : ${
"--suffix PATH : ${
lib.makeBinPath [
ffmpeg-headless
ripgrep
]
}"
]
++ lib.optional stdenv.hostPlatform.isLinux "--prefix LD_LIBRARY_PATH : ${
++ lib.optional stdenv.hostPlatform.isLinux "--suffix LD_LIBRARY_PATH : ${
lib.makeLibraryPath [ pipewire ]
}"
++ [

View File

@@ -60,7 +60,7 @@ let
postBuild = ''
wrapProgram $out/bin/${python3.meta.mainProgram} \
--prefix ${libraryPath} : ${pythonLibraryPath} \
--suffix ${libraryPath} : ${pythonLibraryPath} \
"''${gappsWrapperArgs[@]}" \
"''${qtWrapperArgs[@]}"
'';