Merge pull request #143664 from welteki/arkade

This commit is contained in:
Sandro 2021-11-22 16:30:06 +01:00 committed by GitHub
commit 57ff7afa78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 58 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -24001,6 +24001,8 @@ with pkgs;
arion = callPackage ../applications/virtualization/arion { };
arkade = callPackage ../applications/networking/cluster/arkade { };
asuka = callPackage ../applications/networking/browsers/asuka {
inherit (darwin.apple_sdk.frameworks) Security;
};