Fix arg passing in nix-bundle

This commit is contained in:
Matthew Bauer 2018-04-04 15:04:37 -05:00
parent 496f2b5247
commit e33eb8feda

View File

@ -61,15 +61,14 @@ rec {
makeStartup = { target, nixUserChrootFlags, nix-user-chroot', run }:
writeScript "startup" ''
#!/bin/sh
.${nix-user-chroot'}/bin/nix-user-chroot -n ./nix ${nixUserChrootFlags} -- ${target}${run} $@
.${nix-user-chroot'}/bin/nix-user-chroot -n ./nix ${nixUserChrootFlags} -- ${target}${run} $@
'';
nix-bootstrap = { target, extraTargets ? [], run, nix-user-chroot' ? nix-user-chroot, nixUserChrootFlags ? "" }:
let
script = makeStartup { inherit target nixUserChrootFlags nix-user-chroot' run; };
in makebootstrap {
startup = ".${script}";
startup = ".${script} '\"$@\"'";
targets = [ "${script}" ] ++ extraTargets;
};