From e3137f73fd85d6b63a04b4e2d94f48d2f68113f3 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Thu, 6 Oct 2022 12:48:19 -0400 Subject: [PATCH] netbsd.install: Use `writeShellScript` --- pkgs/os-specific/bsd/netbsd/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/bsd/netbsd/default.nix b/pkgs/os-specific/bsd/netbsd/default.nix index 82e7dafdd3b4..8e120cd19a84 100644 --- a/pkgs/os-specific/bsd/netbsd/default.nix +++ b/pkgs/os-specific/bsd/netbsd/default.nix @@ -3,7 +3,7 @@ , buildPackages, splicePackages, newScope , bsdSetupHook, makeSetupHook, fetchcvs, groff, mandoc, byacc, flex , zlib -, writeScript, writeText, runtimeShell, symlinkJoin +, writeShellScript, writeText, runtimeShell, symlinkJoin }: let @@ -281,8 +281,7 @@ in lib.makeScopeWithSplicing # HACK: to ensure parent directories exist. This emulates GNU # install’s -D option. No alternative seems to exist in BSD install. - install = let binstall = writeScript "binstall" '' - #!${runtimeShell} + install = let binstall = writeShellScript "binstall" '' set -eu for last in "$@"; do true; done mkdir -p $(dirname $last)