on master help sign in
Fix arg passing in nix-bundle
commite33eb8fedabfe9935faa86cfbab4a0ad0afe3029 authorMatthew Bauer <mjbauer95@gmail.com> dateWed 4 Apr 2018, 15:04 (9 years ago) parent496f2b5
1 file changed+2−3
default.nix+2−3
default.nix+2−3
@@ -61,15 +61,14 @@ rec {
6161
6262 makeStartup = { target, nixUserChrootFlags, nix-user-chroot', run }:
6363 writeScript "startup" ''
64− #!/bin/sh
65− .${nix-user-chroot'}/bin/nix-user-chroot -n ./nix ${nixUserChrootFlags} -- ${target}${run} $@
64+.${nix-user-chroot'}/bin/nix-user-chroot -n ./nix ${nixUserChrootFlags} -- ${target}${run} $@
6665 '';
6766
6867 nix-bootstrap = { target, extraTargets ? [], run, nix-user-chroot' ? nix-user-chroot, nixUserChrootFlags ? "" }:
6968 let
7069 script = makeStartup { inherit target nixUserChrootFlags nix-user-chroot' run; };
7170 in makebootstrap {
72− startup = ".${script}";
71+ startup = ".${script} '\"$@\"'";
7372 targets = [ "${script}" ] ++ extraTargets;
7473 };
7574