mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
netbsd.install: Use writeShellScript
This commit is contained in:
parent
dcf7a5ec3d
commit
e3137f73fd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user