mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
az-pim-cli: switch to passthru version test
--version requires $HOME to be set
This commit is contained in:
parent
c5c7b6913b
commit
1ceddee80f
1 changed files with 9 additions and 6 deletions
|
@ -5,8 +5,9 @@
|
|||
installShellFiles,
|
||||
stdenv,
|
||||
buildPackages,
|
||||
versionCheckHook,
|
||||
nix-update-script,
|
||||
testers,
|
||||
az-pim-cli,
|
||||
}:
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "az-pim-cli";
|
||||
|
@ -37,11 +38,13 @@ buildGoModule (finalAttrs: {
|
|||
''
|
||||
);
|
||||
|
||||
doInstallCheck = true;
|
||||
nativeInstallCheck = [ versionCheckHook ];
|
||||
versionCheckProgramArg = "version";
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
tests.version = testers.testVersion {
|
||||
command = "HOME=$TMPDIR az-pim-cli --version";
|
||||
package = az-pim-cli;
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "List and activate Azure Entra ID Privileged Identity Management roles from the CLI";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue