Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
34 lines
661 B
Nix
34 lines
661 B
Nix
{
|
|
lib,
|
|
substituteAll,
|
|
runtimeShell,
|
|
installShellFiles,
|
|
util-linuxMinimal,
|
|
}:
|
|
substituteAll {
|
|
name = "nixos-enter";
|
|
src = ./nixos-enter.sh;
|
|
|
|
inherit runtimeShell;
|
|
|
|
path = lib.makeBinPath [
|
|
util-linuxMinimal
|
|
];
|
|
|
|
dir = "bin";
|
|
isExecutable = true;
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
|
installManPage ${./nixos-enter.8}
|
|
'';
|
|
|
|
meta = {
|
|
description = "Run a command in a NixOS chroot environment";
|
|
homepage = "https://github.com/NixOS/nixpkgs/tree/master/pkgs/by-name/ni/nixos-install";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "nixos-enter";
|
|
};
|
|
}
|