From ff1f59da89ffea0ce9c966aafd2f09e83c0f777c Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Mon, 30 Dec 2024 09:50:12 +0000 Subject: [PATCH] nixos-option: link to nixos test --- pkgs/by-name/ni/nixos-option/package.nix | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/ni/nixos-option/package.nix b/pkgs/by-name/ni/nixos-option/package.nix index ceee9b8f1d788..c9567707f300e 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;