diff options
author | j-k <dev@j-k.io> | 2021-06-04 13:39:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-04 08:39:07 -0400 |
commit | da05be87f5be9b6d852a1169c645e4ed216a5dbf (patch) | |
tree | 6fff709cc46a8f763d6a41ac1eb3617b140d47ed /pkgs/applications/networking/cluster/starboard | |
parent | b78ece588c779013953a775954e0b9694b1d6150 (diff) | |
download | nixpkgs-da05be87f5be9b6d852a1169c645e4ed216a5dbf.tar nixpkgs-da05be87f5be9b6d852a1169c645e4ed216a5dbf.tar.gz nixpkgs-da05be87f5be9b6d852a1169c645e4ed216a5dbf.tar.bz2 nixpkgs-da05be87f5be9b6d852a1169c645e4ed216a5dbf.tar.lz nixpkgs-da05be87f5be9b6d852a1169c645e4ed216a5dbf.tar.xz nixpkgs-da05be87f5be9b6d852a1169c645e4ed216a5dbf.tar.zst nixpkgs-da05be87f5be9b6d852a1169c645e4ed216a5dbf.zip |
starboard: 0.10.1 -> 0.10.2 -> 0.10.3 (#122888)
* starboard: 0.10.1 -> 0.10.2 * starboard: 0.10.2 -> 0.10.3
Diffstat (limited to 'pkgs/applications/networking/cluster/starboard')
-rw-r--r-- | pkgs/applications/networking/cluster/starboard/default.nix | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/pkgs/applications/networking/cluster/starboard/default.nix b/pkgs/applications/networking/cluster/starboard/default.nix index 1418f40e216..121611fd197 100644 --- a/pkgs/applications/networking/cluster/starboard/default.nix +++ b/pkgs/applications/networking/cluster/starboard/default.nix @@ -2,29 +2,40 @@ buildGoModule rec { pname = "starboard"; - version = "0.10.1"; + version = "0.10.3"; src = fetchFromGitHub { owner = "aquasecurity"; repo = pname; rev = "v${version}"; - sha256 = "sha256-cDqZo0GTpvvkEiccP42u9X2ydHkSBuoD8Zfp+i+/qjo="; + sha256 = "sha256-SJogepww3IJt+NAkJ0G/lLgZ3rMWDTC+jHIrzzkzJGA="; }; - vendorSha256 = "sha256-noK4fF9wCP1dYfDgmJVZehcF+eunzP+d9n1SiPO9UEU="; + vendorSha256 = "sha256-vNsYGlcVIj/cDijCFz8fG5Ht/s7koM62GV8zkOyA/fA="; - subPackages = [ "cmd/starboard" ]; + # Don't build and check the integration tests + excludedPackages = "itest"; - doCheck = false; + preBuild = '' + buildFlagsArray+=("-ldflags" "-s -w -X main.version=v${version}") + ''; - buildFlagsArray = [ - "-ldflags=" - "-s" - "-w" - "-X main.version=v${version}" - ]; + preCheck = '' + # Remove test that requires networking + rm pkg/plugin/aqua/client/client_integration_test.go + ''; + + doInstallCheck = true; + installCheckPhase = '' + runHook preInstallCheck + $out/bin/starboard --help + $out/bin/starboard version | grep "v${version}" + runHook postInstallCheck + ''; meta = with lib; { + homepage = "https://github.com/aquasecurity/starboard"; + changelog = "https://github.com/aquasecurity/starboard/releases/tag/v${version}"; description = "Kubernetes-native security tool kit"; longDescription = '' Starboard integrates security tools into the Kubernetes environment, so @@ -35,7 +46,6 @@ buildGoModule rec { plug-in that make security reports available through familiar Kubernetes tools. ''; - homepage = src.meta.homepage; license = licenses.asl20; maintainers = with maintainers; [ jk ]; }; |