diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-11-22 16:30:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-22 16:30:06 +0100 |
commit | 57ff7afa785a7a9606c328087040aa77705ec93e (patch) | |
tree | d60e042022b5b4a2422a8fc44cd719f3ca3811c5 /pkgs/applications/networking/cluster | |
parent | ad74d444ad6d574b0ceee2c519d82e886207dc8c (diff) | |
parent | 691aa5825201d8d22d5972df3139b7a037b52caa (diff) |
Merge pull request #143664 from welteki/arkade
Diffstat (limited to 'pkgs/applications/networking/cluster')
-rw-r--r-- | pkgs/applications/networking/cluster/arkade/default.nix | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/arkade/default.nix b/pkgs/applications/networking/cluster/arkade/default.nix new file mode 100644 index 0000000000000..215bcba832ec8 --- /dev/null +++ b/pkgs/applications/networking/cluster/arkade/default.nix @@ -0,0 +1,56 @@ +{ lib +, stdenv +, buildGoModule +, fetchFromGitHub +, makeWrapper +, kubectl +}: + +buildGoModule rec { + pname = "arkade"; + version = "0.8.9"; + + src = fetchFromGitHub { + owner = "alexellis"; + repo = "arkade"; + rev = version; + sha256 = "0jv6pip3ywx8bx7m25fby6kl5irnjxvlpss2wkm615gv9ari21aq"; + }; + + CGO_ENABLED = 0; + + vendorSha256 = "05zdd5c2x4k4myxmgj32md8wq08i543l8q81rabqgyd3r9nwv4lx"; + + # Exclude pkg/get: tests downloading of binaries which fail when sandbox=true + subPackages = [ + "." + "cmd" + "pkg/apps" + "pkg/archive" + "pkg/config" + "pkg/env" + "pkg/helm" + "pkg/k8s" + "pkg/types" + ]; + + ldflags = [ + "-s" "-w" + "-X github.com/alexellis/arkade/cmd.GitCommit=ref/tags/${version}" + "-X github.com/alexellis/arkade/cmd.Version=${version}" + ]; + + buildInputs = [ makeWrapper ]; + + postInstall = '' + wrapProgram "$out/bin/arkade" \ + --prefix PATH : ${lib.makeBinPath [ kubectl ]} + ''; + + meta = with lib; { + homepage = "https://github.com/alexellis/arkade"; + description = "Open Source Kubernetes Marketplace"; + license = licenses.mit; + maintainers = with maintainers; [ welteki ]; + }; +} |