nix-bundle/default.nix
Matthew Justin Bauer 499bd545b4 Update default.nix
2016-06-22 13:23:11 -05:00

57 lines
1015 B
Nix

{nixpkgs ? import <nixpkgs> {}}:
with nixpkgs;
let
arx = callPackage ./arx.nix {
inherit (haskellPackages) arx;
};
maketar = callPackage ./maketar.nix {};
nix-installer = callPackage ./nix-installer.nix {};
makebootstrap = callPackage ./makebootstrap.nix {
inherit arx maketar;
};
nix-user-chroot = callPackage ./nix-user-chroot.nix {};
nix-bootstrap = callPackage ./nix-bootstrap.nix {
inherit nix-user-chroot makebootstrap;
};
in {
hello = nix-bootstrap {
name = "hello";
target = hello;
run = "/bin/hello";
};
firefox = nix-bootstrap {
name = "firefox";
target = firefox;
run = "/bin/firefox";
};
nano = nix-bootstrap {
name = "nano";
target = nano;
run = "/bin/nano";
};
emacs = nix-bootstrap {
name = "emacs";
target = emacs24-nox;
run = "/bin/emacs";
};
nixInstaller = makebootstrap {
name = "nix-installer.sh";
targets = [ nix-installer ];
startup = ".${nix-installer}/install";
};
}