sou: switch to passthru version test

requires $HOME to be set

awwpotato c20a5559 1ceddee8

+9 -5
+9 -5
pkgs/by-name/so/sou/package.nix
··· 3 buildGoModule, 4 fetchFromGitHub, 5 nix-update-script, 6 - versionCheckHook, 7 }: 8 9 buildGoModule (finalAttrs: { ··· 25 "-X=main.version=${finalAttrs.version}" 26 ]; 27 28 - doInstallCheck = true; 29 - nativeInstallCheck = [ versionCheckHook ]; 30 - 31 # Some of the tests use localhost networking 32 __darwinAllowLocalNetworking = true; 33 34 - passthru.updateScript = nix-update-script { }; 35 36 meta = { 37 description = "Tool for exploring files in container image layers";
··· 3 buildGoModule, 4 fetchFromGitHub, 5 nix-update-script, 6 + testers, 7 + sou, 8 }: 9 10 buildGoModule (finalAttrs: { ··· 26 "-X=main.version=${finalAttrs.version}" 27 ]; 28 29 # Some of the tests use localhost networking 30 __darwinAllowLocalNetworking = true; 31 32 + passthru = { 33 + updateScript = nix-update-script { }; 34 + tests.version = testers.testVersion { 35 + command = "HOME=$TMPDIR sou --version"; 36 + package = sou; 37 + }; 38 + }; 39 40 meta = { 41 description = "Tool for exploring files in container image layers";