diff options
author | Han Verstraete <welteki@pm.me> | 2021-10-29 14:20:49 +0200 |
---|---|---|
committer | Han Verstraete <welteki@pm.me> | 2021-11-08 16:01:14 +0100 |
commit | 691aa5825201d8d22d5972df3139b7a037b52caa (patch) | |
tree | 3c1b4ed2acae77b731bfb42bc16223a22d0d39f6 /pkgs/applications/networking/cluster/arkade | |
parent | f0f8af9d7e5a66d75e7bb0a3c148c185b9709dd7 (diff) | |
download | nixpkgs-691aa5825201d8d22d5972df3139b7a037b52caa.tar nixpkgs-691aa5825201d8d22d5972df3139b7a037b52caa.tar.gz nixpkgs-691aa5825201d8d22d5972df3139b7a037b52caa.tar.bz2 nixpkgs-691aa5825201d8d22d5972df3139b7a037b52caa.tar.lz nixpkgs-691aa5825201d8d22d5972df3139b7a037b52caa.tar.xz nixpkgs-691aa5825201d8d22d5972df3139b7a037b52caa.tar.zst nixpkgs-691aa5825201d8d22d5972df3139b7a037b52caa.zip |
arkade: init at 0.8.9
Diffstat (limited to 'pkgs/applications/networking/cluster/arkade')
-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 00000000000..215bcba832e --- /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 ]; + }; +} |