mirror of
https://github.com/ilyakooo0/nix-bundle.git
synced 2024-09-11 06:55:53 +03:00
Fix arg passing in nix-bundle
This commit is contained in:
parent
496f2b5247
commit
e33eb8feda
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user