netbsd.install: Use writeShellScript

This commit is contained in:
John Ericson 2022-10-06 12:48:19 -04:00
parent dcf7a5ec3d
commit e3137f73fd

View File

@ -3,7 +3,7 @@
, buildPackages, splicePackages, newScope , buildPackages, splicePackages, newScope
, bsdSetupHook, makeSetupHook, fetchcvs, groff, mandoc, byacc, flex , bsdSetupHook, makeSetupHook, fetchcvs, groff, mandoc, byacc, flex
, zlib , zlib
, writeScript, writeText, runtimeShell, symlinkJoin , writeShellScript, writeText, runtimeShell, symlinkJoin
}: }:
let let
@ -281,8 +281,7 @@ in lib.makeScopeWithSplicing
# HACK: to ensure parent directories exist. This emulates GNU # HACK: to ensure parent directories exist. This emulates GNU
# installs -D option. No alternative seems to exist in BSD install. # installs -D option. No alternative seems to exist in BSD install.
install = let binstall = writeScript "binstall" '' install = let binstall = writeShellScript "binstall" ''
#!${runtimeShell}
set -eu set -eu
for last in "$@"; do true; done for last in "$@"; do true; done
mkdir -p $(dirname $last) mkdir -p $(dirname $last)