nixpkgs/pkgs/applications/networking/cluster/arkade/default.nix
zowoq c2e75fdf9c arkade: remove kubectl wrapper
defer to a user provided kubectl
2022-02-19 07:00:48 +10:00

48 lines
985 B
Nix

{ lib
, stdenv
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "arkade";
version = "0.8.14";
src = fetchFromGitHub {
owner = "alexellis";
repo = "arkade";
rev = version;
sha256 = "sha256-XH7JtLv0J6bznZZ/L8wg5KB53OPe3KLiYujBlxP71pg=";
};
CGO_ENABLED = 0;
vendorSha256 = "sha256-ipLVzBkliQSPBZTL5FU8xosTVjxFsUVlAvO0a0q+j2o=";
# 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}"
];
meta = with lib; {
homepage = "https://github.com/alexellis/arkade";
description = "Open Source Kubernetes Marketplace";
license = licenses.mit;
maintainers = with maintainers; [ welteki ];
};
}