nixos-enter: move to pkgs/by-name

This commit is contained in:
K900 2024-09-19 20:08:38 +03:00
parent 8353a681b5
commit 825f6ffa9e
4 changed files with 29 additions and 10 deletions

View File

@ -64,16 +64,7 @@ let
manPage = ./manpages/nixos-version.8;
};
nixos-enter = makeProg {
name = "nixos-enter";
src = ./nixos-enter.sh;
inherit (pkgs) runtimeShell;
path = makeBinPath [
pkgs.util-linuxMinimal
];
manPage = ./manpages/nixos-enter.8;
};
inherit (pkgs) nixos-enter;
in
{

View File

@ -0,0 +1,28 @@
{
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.mainProgram = "nixos-enter";
}