nix-bundle/default.nix
2016-06-17 15:51:50 +00:00

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";
};
}