diff --git a/pkgs/by-name/ni/nixos-option/package.nix b/pkgs/by-name/ni/nixos-option/package.nix index ceee9b8f1d7886..c9567707f300ea 100644 --- a/pkgs/by-name/ni/nixos-option/package.nix +++ b/pkgs/by-name/ni/nixos-option/package.nix @@ -1,13 +1,14 @@ { lib, - makeWrapper, - stdenvNoCC, + coreutils, installShellFiles, - shellcheck, - nix, jq, + makeWrapper, man-db, - coreutils, + nix, + nixosTests, + shellcheck, + stdenvNoCC, }: stdenvNoCC.mkDerivation { @@ -44,7 +45,9 @@ stdenvNoCC.mkDerivation { doInstallCheck = true; installCheckPhase = '' runHook preInstallCheck + shellcheck $out/bin/nixos-option + runHook postInstallCheck ''; @@ -52,14 +55,16 @@ stdenvNoCC.mkDerivation { 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;