mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
sou: switch to passthru version test
requires $HOME to be set
This commit is contained in:
parent
1ceddee80f
commit
c20a55598a
1 changed files with 9 additions and 5 deletions
|
@ -3,7 +3,8 @@
|
|||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
versionCheckHook,
|
||||
testers,
|
||||
sou,
|
||||
}:
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
|
@ -25,13 +26,16 @@ buildGoModule (finalAttrs: {
|
|||
"-X=main.version=${finalAttrs.version}"
|
||||
];
|
||||
|
||||
doInstallCheck = true;
|
||||
nativeInstallCheck = [ versionCheckHook ];
|
||||
|
||||
# Some of the tests use localhost networking
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
tests.version = testers.testVersion {
|
||||
command = "HOME=$TMPDIR sou --version";
|
||||
package = sou;
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Tool for exploring files in container image layers";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue