mirror of
https://github.com/ilyakooo0/nix-bundle.git
synced 2024-10-26 08:42:01 +03:00
62 lines
1.2 KiB
Nix
62 lines
1.2 KiB
Nix
{nixpkgs ? import <nixpkgs> {}}:
|
|
|
|
with nixpkgs;
|
|
|
|
let
|
|
|
|
makeself = callPackage ./makeself.nix {};
|
|
makedir = callPackage ./makedir.nix {};
|
|
nix-installer = callPackage ./nix-installer.nix {};
|
|
|
|
makebootstrap = callPackage ./makebootstrap.nix {
|
|
inherit makedir makeself;
|
|
};
|
|
|
|
nix-user-chroot = callPackage ./nix-user-chroot.nix {};
|
|
|
|
nix-bootstrap = callPackage ./nix-bootstrap.nix {
|
|
inherit nix-user-chroot;
|
|
};
|
|
|
|
in {
|
|
|
|
helloBundle = makebootstrap {
|
|
name = "hello";
|
|
target = hello;
|
|
run = "/bin/hello";
|
|
};
|
|
|
|
firefoxBundle = makebootstrap {
|
|
name = "firefox";
|
|
target = firefox;
|
|
run = "/bin/firefox";
|
|
};
|
|
|
|
nanoBundle = makebootstrap {
|
|
name = "nano";
|
|
target = nano;
|
|
run = "/bin/nano";
|
|
};
|
|
|
|
emacsBundle = makebootstrap {
|
|
name = "emacs";
|
|
target = emacs;
|
|
run = "/bin/emacs";
|
|
};
|
|
|
|
nixShellBundle = makebootstrap {
|
|
name = "nix-bootstrap.sh";
|
|
target = nix-bootstrap {
|
|
name = "nix-bootstrap";
|
|
stage3 = "nix-shell --pure --packages bash --comand bash";
|
|
};
|
|
run = "/stage1.sh";
|
|
};
|
|
|
|
nixInstaller = makebootstrap {
|
|
name = "nix-installer.sh";
|
|
target = nix-installer;
|
|
run = "/install";
|
|
};
|
|
}
|