mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
zarf: 0.54.0 -> 0.55.6 (#413577)
This commit is contained in:
commit
e895792bac
1 changed files with 14 additions and 11 deletions
|
@ -8,16 +8,16 @@
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "zarf";
|
pname = "zarf";
|
||||||
version = "0.54.0";
|
version = "0.55.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "zarf-dev";
|
owner = "zarf-dev";
|
||||||
repo = "zarf";
|
repo = "zarf";
|
||||||
rev = "v${version}";
|
tag = "v${version}";
|
||||||
hash = "sha256-rY9xWqJ+2Yfs6VRHTF89LmuEruAavDI7MgBm4UFEuBs=";
|
hash = "sha256-UoTbw5QW9HpGDWHOC0Wv/4FaTKWEztHRp/XAOatqqjs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-Cz+w0tOEamCxf61hvQ03X/kXPY+qrmdBN8s26lr/wZ8=";
|
vendorHash = "sha256-AJd/QVL+ZoLORqeYrC/WkRtggYd3nhg8AEZ9Gb1j2tQ=";
|
||||||
proxyVendor = true;
|
proxyVendor = true;
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
@ -25,6 +25,7 @@ buildGoModule rec {
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
mkdir -p build/ui
|
mkdir -p build/ui
|
||||||
touch build/ui/index.html
|
touch build/ui/index.html
|
||||||
|
rm -rf hack/schema
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
@ -33,11 +34,11 @@ buildGoModule rec {
|
||||||
"-s"
|
"-s"
|
||||||
"-w"
|
"-w"
|
||||||
"-X"
|
"-X"
|
||||||
"github.com/zarf-dev/zarf/src/config.CLIVersion=${src.rev}"
|
"github.com/zarf-dev/zarf/src/config.CLIVersion=${src.tag}"
|
||||||
"-X"
|
"-X"
|
||||||
"k8s.io/component-base/version.gitVersion=v0.0.0+zarf${src.rev}"
|
"k8s.io/component-base/version.gitVersion=v0.0.0+zarf${src.tag}"
|
||||||
"-X"
|
"-X"
|
||||||
"k8s.io/component-base/version.gitCommit=${src.rev}"
|
"k8s.io/component-base/version.gitCommit=${src.tag}"
|
||||||
"-X"
|
"-X"
|
||||||
"k8s.io/component-base/version.buildDate=1970-01-01T00:00:00Z"
|
"k8s.io/component-base/version.buildDate=1970-01-01T00:00:00Z"
|
||||||
];
|
];
|
||||||
|
@ -45,9 +46,9 @@ buildGoModule rec {
|
||||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
export K9S_LOGS_DIR=$(mktemp -d)
|
export K9S_LOGS_DIR=$(mktemp -d)
|
||||||
installShellCompletion --cmd zarf \
|
installShellCompletion --cmd zarf \
|
||||||
--bash <($out/bin/zarf completion --no-log-file bash) \
|
--bash <($out/bin/zarf completion bash) \
|
||||||
--fish <($out/bin/zarf completion --no-log-file fish) \
|
--fish <($out/bin/zarf completion fish) \
|
||||||
--zsh <($out/bin/zarf completion --no-log-file zsh)
|
--zsh <($out/bin/zarf completion zsh)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -55,6 +56,8 @@ buildGoModule rec {
|
||||||
mainProgram = "zarf";
|
mainProgram = "zarf";
|
||||||
homepage = "https://zarf.dev";
|
homepage = "https://zarf.dev";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ ragingpastry ];
|
maintainers = with maintainers; [
|
||||||
|
ragingpastry
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue