Skip to content

Commit 1e5334e

Browse files
committed
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.
1 parent e94ef20 commit 1e5334e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nix/package/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ python3Packages.buildPythonApplication {
5555
dontWrapGApps = true;
5656
dontWrapQtApps = true;
5757
makeWrapperArgs = [
58-
"--prefix PATH : ${
58+
"--suffix PATH : ${
5959
lib.makeBinPath [
6060
ffmpeg-headless
6161
ripgrep
6262
]
6363
}"
6464
]
65-
++ lib.optional stdenv.hostPlatform.isLinux "--prefix LD_LIBRARY_PATH : ${
65+
++ lib.optional stdenv.hostPlatform.isLinux "--suffix LD_LIBRARY_PATH : ${
6666
lib.makeLibraryPath [ pipewire ]
6767
}"
6868
++ [

nix/shell.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ let
6060

6161
postBuild = ''
6262
wrapProgram $out/bin/${python3.meta.mainProgram} \
63-
--prefix ${libraryPath} : ${pythonLibraryPath} \
63+
--suffix ${libraryPath} : ${pythonLibraryPath} \
6464
"''${gappsWrapperArgs[@]}" \
6565
"''${qtWrapperArgs[@]}"
6666
'';

0 commit comments

Comments
 (0)