mirror of
https://github.com/ilyakooo0/nix-bundle.git
synced 2024-09-11 06:55:53 +03:00
57 lines
1015 B
Nix
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";
|
|
};
|
|
}
|