k3sup: 0.11.3 -> 0.12.0
This commit is contained in:
parent
0011e576fb
commit
1b0a637d8f
1 changed files with 10 additions and 4 deletions
|
@ -2,24 +2,25 @@
|
||||||
, buildGoModule
|
, buildGoModule
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
|
, installShellFiles
|
||||||
, bash
|
, bash
|
||||||
, openssh
|
, openssh
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "k3sup";
|
pname = "k3sup";
|
||||||
version = "0.11.3";
|
version = "0.12.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "alexellis";
|
owner = "alexellis";
|
||||||
repo = "k3sup";
|
repo = "k3sup";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-6WYUmC2uVHFGLsfkA2EUOWmmo1dSKJzI4MEdRnlLgYY=";
|
sha256 = "sha256-sb0cVLPIRD49AQ2XUsXkABFEZPrcuytr8Ht7Zt40H3o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
||||||
|
|
||||||
vendorSha256 = "sha256-Pd+BgPWoxf1AhP0o5SgFSvy4LyUQB7peKWJk0BMy7ds=";
|
vendorSha256 = "sha256-I2bODrGF4D7B13qBZtCAOWgAmrxdleqfDQz+vCGmdjQ=";
|
||||||
|
|
||||||
postConfigure = ''
|
postConfigure = ''
|
||||||
substituteInPlace vendor/github.com/alexellis/go-execute/pkg/v1/exec.go \
|
substituteInPlace vendor/github.com/alexellis/go-execute/pkg/v1/exec.go \
|
||||||
|
@ -37,6 +38,11 @@ buildGoModule rec {
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram "$out/bin/k3sup" \
|
wrapProgram "$out/bin/k3sup" \
|
||||||
--prefix PATH : ${lib.makeBinPath [ openssh ]}
|
--prefix PATH : ${lib.makeBinPath [ openssh ]}
|
||||||
|
|
||||||
|
installShellCompletion --cmd k3sup \
|
||||||
|
--bash <($out/bin/k3sup completion bash) \
|
||||||
|
--zsh <($out/bin/k3sup completion zsh) \
|
||||||
|
--fish <($out/bin/k3sup completion fish)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue