tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
netbsd.install: Use `writeShellScript`
John Ericson
3 years ago
e3137f73
dcf7a5ec
+2
-3
1 changed file
expand all
collapse all
unified
split
pkgs
os-specific
bsd
netbsd
default.nix
+2
-3
pkgs/os-specific/bsd/netbsd/default.nix
···
3
3
, buildPackages, splicePackages, newScope
4
4
, bsdSetupHook, makeSetupHook, fetchcvs, groff, mandoc, byacc, flex
5
5
, zlib
6
6
-
, writeScript, writeText, runtimeShell, symlinkJoin
6
6
+
, writeShellScript, writeText, runtimeShell, symlinkJoin
7
7
}:
8
8
9
9
let
···
281
281
282
282
# HACK: to ensure parent directories exist. This emulates GNU
283
283
# install’s -D option. No alternative seems to exist in BSD install.
284
284
-
install = let binstall = writeScript "binstall" ''
285
285
-
#!${runtimeShell}
284
284
+
install = let binstall = writeShellScript "binstall" ''
286
285
set -eu
287
286
for last in "$@"; do true; done
288
287
mkdir -p $(dirname $last)