From 3b0ba6a6e1d348c555a297341ff3e81cbf4af948 Mon Sep 17 00:00:00 2001 From: Alexander Sieg Date: Mon, 26 Aug 2024 12:14:02 +0200 Subject: [PATCH] writers.*: use lib.makeBinPath in documentation This also fixes a syntax error with `,` being used as a array element separator. --- pkgs/build-support/writers/scripts.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/build-support/writers/scripts.nix b/pkgs/build-support/writers/scripts.nix index 9cdf9616f0e5..e882c917688b 100644 --- a/pkgs/build-support/writers/scripts.nix +++ b/pkgs/build-support/writers/scripts.nix @@ -310,7 +310,7 @@ rec { # writeBash "example" # { # makeWrapperArgs = [ - # "--prefix" "PATH" ":" "${pkgs.hello}/bin" + # "--prefix" "PATH" ":" "${lib.makeBinPath [ pkgs.hello ]}" # ]; # } # '' @@ -336,7 +336,7 @@ rec { # writeBashBin "example" # { # makeWrapperArgs = [ - # "--prefix", "PATH", ":", "${pkgs.hello}/bin", + # "--prefix" "PATH" ":" "${lib.makeBinPath [ pkgs.hello ]}" # ]; # } # '' @@ -357,7 +357,7 @@ rec { # writeDash "example" # { # makeWrapperArgs = [ - # "--prefix", "PATH", ":", "${pkgs.hello}/bin", + # "--prefix" "PATH" ":" "${lib.makeBinPath [ pkgs.hello ]}" # ]; # } # '' @@ -383,7 +383,7 @@ rec { # writeDashBin "example" # { # makeWrapperArgs = [ - # "--prefix", "PATH", ":", "${pkgs.hello}/bin", + # "--prefix" "PATH" ":" "${lib.makeBinPath [ pkgs.hello ]}" # ]; # } # '' @@ -404,7 +404,7 @@ rec { # writeFish "example" # { # makeWrapperArgs = [ - # "--prefix", "PATH", ":", "${pkgs.hello}/bin", + # "--prefix" "PATH" ":" "${lib.makeBinPath [ pkgs.hello ]}" # ]; # } # '' @@ -439,7 +439,7 @@ rec { # writeFishBin "example" # { # makeWrapperArgs = [ - # "--prefix", "PATH", ":", "${pkgs.hello}/bin", + # "--prefix" "PATH" ":" "${lib.makeBinPath [ pkgs.hello ]}" # ]; # } # '' @@ -496,7 +496,7 @@ rec { # writeNu "example" # { # makeWrapperArgs = [ - # "--prefix", "PATH", ":", "${pkgs.hello}/bin", + # "--prefix" "PATH" ":" "${lib.makeBinPath [ pkgs.hello ]}" # ]; # } # '' @@ -524,7 +524,7 @@ rec { # writeNuBin "example" # { # makeWrapperArgs = [ - # "--prefix", "PATH", ":", "${pkgs.hello}/bin", + # "--prefix" "PATH" ":" "${lib.makeBinPath [ pkgs.hello ]}" # ]; # } # ''