mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
39 lines
672 B
Nix
39 lines
672 B
Nix
{
|
|
lib,
|
|
substituteAll,
|
|
runtimeShell,
|
|
installShellFiles,
|
|
nix,
|
|
jq,
|
|
nixos-enter,
|
|
util-linuxMinimal,
|
|
}:
|
|
substituteAll {
|
|
name = "nixos-install";
|
|
src = ./nixos-install.sh;
|
|
|
|
inherit runtimeShell nix;
|
|
|
|
path = lib.makeBinPath [
|
|
jq
|
|
nixos-enter
|
|
util-linuxMinimal
|
|
];
|
|
|
|
dir = "bin";
|
|
isExecutable = true;
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
|
installManPage ${./nixos-install.8}
|
|
'';
|
|
|
|
meta = {
|
|
description = "Install bootloader and NixOS";
|
|
homepage = "https://github.com/NixOS/nixpkgs/tree/master/pkgs/by-name/ni/nixos-install";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "nixos-install";
|
|
};
|
|
}
|