about summary refs log tree commit diff
path: root/pkgs/tools/misc/man-db
diff options
context:
space:
mode:
authorShamrock Lee <44064051+ShamrockLee@users.noreply.github.com>2022-07-22 22:58:26 +0000
committerShamrock Lee <44064051+ShamrockLee@users.noreply.github.com>2022-07-24 03:16:59 +0800
commit83a9b3c4155f5da4ba507de5b5a09036b2a77d6e (patch)
tree27e7e23a3ae8cfed5422ac6a2320e4a8aed024f2 /pkgs/tools/misc/man-db
parentb38a1818bcfab24ae6f9f815f28959ffd11a4371 (diff)
man-db: use lib.makeBinPath when wrapping
Diffstat (limited to 'pkgs/tools/misc/man-db')
-rw-r--r--pkgs/tools/misc/man-db/default.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/tools/misc/man-db/default.nix b/pkgs/tools/misc/man-db/default.nix
index 8992e9ff0dafe..ff0e84091e8f8 100644
--- a/pkgs/tools/misc/man-db/default.nix
+++ b/pkgs/tools/misc/man-db/default.nix
@@ -68,8 +68,7 @@ stdenv.mkDerivation rec {
     # make sure that we don't wrap symlinks (since that changes argv[0] to the -wrapped name)
     find "$out/bin" -type f | while read file; do
       wrapProgram "$file" \
-        --prefix PATH : "${lib.getBin groff}/bin" \
-        --prefix PATH : "${lib.getBin zstd}/bin"
+        --prefix PATH : "${lib.makeBinPath [ groff zstd ]}"
     done
   '';