blob: 90ea0a2f872d8dea8cd66d5c3c0053fabacdc436 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{ lib
, stdenv
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:
buildGoModule rec {
pname = "arkade";
version = "0.11.5";
src = fetchFromGitHub {
owner = "alexellis";
repo = "arkade";
rev = version;
hash = "sha256-8G9O1HJtlRCiqfls98+CvsjeOszEY1OfWpw99B2tCuE=";
};
CGO_ENABLED = 0;
nativeBuildInputs = [ installShellFiles ];
vendorHash = null;
# 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/pkg.GitCommit=ref/tags/${version}"
"-X github.com/alexellis/arkade/pkg.Version=${version}"
];
postInstall = ''
installShellCompletion --cmd arkade \
--bash <($out/bin/arkade completion bash) \
--zsh <($out/bin/arkade completion zsh) \
--fish <($out/bin/arkade completion fish)
'';
meta = with lib; {
homepage = "https://github.com/alexellis/arkade";
description = "Open Source Kubernetes Marketplace";
license = licenses.mit;
maintainers = with maintainers; [ welteki techknowlogick qjoly ];
};
}
|