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
|
, 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
|
||||||
# install’s -D option. No alternative seems to exist in BSD install.
|
# install’s -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user