2021-10-29 12:20:49 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "arkade";
|
2022-03-29 18:54:47 +00:00
|
|
|
version = "0.8.16";
|
2021-10-29 12:20:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alexellis";
|
|
|
|
repo = "arkade";
|
|
|
|
rev = version;
|
2022-03-29 18:54:47 +00:00
|
|
|
sha256 = "sha256-NiUv7yl1nA7a826FHDF+1MhYscXkQjUpxZo2ZWrL+VQ=";
|
2021-10-29 12:20:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
|
2022-02-12 16:29:33 +00:00
|
|
|
vendorSha256 = "sha256-ipLVzBkliQSPBZTL5FU8xosTVjxFsUVlAvO0a0q+j2o=";
|
2021-10-29 12:20:49 +00:00
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|