@@ -6,17 +6,20 @@ let
66
77 makeself = callPackage ./makeself.nix {};
88 makedir = callPackage ./makedir.nix {};
9− nix-bootstrap = callPackage ./nix-bootstrap.nix {};
109
11− nixdir = makedir {
12− name = "nixdir";
13− toplevel = nix-bootstrap;
14− };
10+ nix-bootstrap = callPackage ./nix-bootstrap.nix {};
1511
16−in
12+ makebootstrap = {name, script}:
13+ makeself {
14+ inherit name;
15+ startup = ".${script}/install";
16+ archive = makedir {
17+ name = "${name}-dir";
18+ toplevel = script;
19+ };
20+ };
1721
18− makeself {
19− name = "nix-installer.sh";
20− startup = ".${nix-bootstrap}/install";
21− archive = nixdir;
22− }
22+in makebootstrap {
23+ name = "nix-bootstrap.sh";
24+ script = nix-bootstrap;
25+}