az-pim-cli: switch to passthru version test

--version requires $HOME to be set

awwpotato 1ceddee8 c5c7b691

+9 -6
+9 -6
pkgs/by-name/az/az-pim-cli/package.nix
··· 5 installShellFiles, 6 stdenv, 7 buildPackages, 8 - versionCheckHook, 9 nix-update-script, 10 }: 11 buildGoModule (finalAttrs: { 12 pname = "az-pim-cli"; ··· 37 '' 38 ); 39 40 - doInstallCheck = true; 41 - nativeInstallCheck = [ versionCheckHook ]; 42 - versionCheckProgramArg = "version"; 43 - 44 - passthru.updateScript = nix-update-script { }; 45 46 meta = { 47 description = "List and activate Azure Entra ID Privileged Identity Management roles from the CLI";
··· 5 installShellFiles, 6 stdenv, 7 buildPackages, 8 nix-update-script, 9 + testers, 10 + az-pim-cli, 11 }: 12 buildGoModule (finalAttrs: { 13 pname = "az-pim-cli"; ··· 38 '' 39 ); 40 41 + passthru = { 42 + updateScript = nix-update-script { }; 43 + tests.version = testers.testVersion { 44 + command = "HOME=$TMPDIR az-pim-cli --version"; 45 + package = az-pim-cli; 46 + }; 47 + }; 48 49 meta = { 50 description = "List and activate Azure Entra ID Privileged Identity Management roles from the CLI";