Skip to content

Commit

Permalink
nixos-enter: move to pkgs/by-name
Browse files Browse the repository at this point in the history
  • Loading branch information
K900 committed Sep 20, 2024
1 parent 8353a68 commit 825f6ff
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 10 deletions.
11 changes: 1 addition & 10 deletions nixos/modules/installer/tools/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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

{
Expand Down
File renamed without changes.
File renamed without changes.
28 changes: 28 additions & 0 deletions pkgs/by-name/ni/nixos-enter/package.nix
Original file line number Diff line number Diff line change
@@ -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";
}

0 comments on commit 825f6ff

Please sign in to comment.