Skip to content

Commit

Permalink
nixos-option: link to nixos test
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Dec 30, 2024
1 parent 8130873 commit ff1f59d
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions pkgs/by-name/ni/nixos-option/package.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
lib,
makeWrapper,
stdenvNoCC,
coreutils,
installShellFiles,
shellcheck,
nix,
jq,
makeWrapper,
man-db,
coreutils,
nix,
nixosTests,
shellcheck,
stdenvNoCC,
}:

stdenvNoCC.mkDerivation {
Expand Down Expand Up @@ -44,22 +45,26 @@ stdenvNoCC.mkDerivation {
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
shellcheck $out/bin/nixos-option
runHook postInstallCheck
'';

postFixup = ''
wrapProgram $out/bin/nixos-option \
--prefix PATH : ${
lib.makeBinPath [
nix
coreutils
jq
man-db
coreutils
nix
]
}
'';

passthru.tests.installer-simpleUefiSystemdBoot = nixosTests.installer.simpleUefiSystemdBoot;

meta = {
description = "Evaluate NixOS configuration and return the properties of given option";
license = lib.licenses.mit;
Expand Down

0 comments on commit ff1f59d

Please sign in to comment.