Loading pkgs/applications/networking/cluster/zarf/default.nix +12 −0 Original line number Diff line number Diff line { lib , buildGoModule , fetchFromGitHub , installShellFiles , stdenv }: buildGoModule rec { Loading @@ -17,6 +19,8 @@ buildGoModule rec { vendorHash = "sha256-+3VYBvcA8TzO9uBl0863uATOavPY9cjt8xtgW7N7C4w="; proxyVendor = true; nativeBuildInputs = [ installShellFiles ]; preBuild = '' mkdir -p build/ui touch build/ui/index.html Loading @@ -26,6 +30,14 @@ buildGoModule rec { ldflags = [ "-s" "-w" "-X" "github.com/defenseunicorns/zarf/src/config.CLIVersion=${src.rev}" "-X" "k8s.io/component-base/version.gitVersion=v0.0.0+zarf${src.rev}" "-X" "k8s.io/component-base/version.gitCommit=${src.rev}" "-X" "k8s.io/component-base/version.buildDate=1970-01-01T00:00:00Z" ]; postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' export K9S_LOGS_DIR=$(mktemp -d) installShellCompletion --cmd zarf \ --bash <($out/bin/zarf completion --no-log-file bash) \ --fish <($out/bin/zarf completion --no-log-file fish) \ --zsh <($out/bin/zarf completion --no-log-file zsh) ''; meta = with lib; { description = "DevSecOps for Air Gap & Limited-Connection Systems. https://zarf.dev"; mainProgram = "zarf"; Loading Loading
pkgs/applications/networking/cluster/zarf/default.nix +12 −0 Original line number Diff line number Diff line { lib , buildGoModule , fetchFromGitHub , installShellFiles , stdenv }: buildGoModule rec { Loading @@ -17,6 +19,8 @@ buildGoModule rec { vendorHash = "sha256-+3VYBvcA8TzO9uBl0863uATOavPY9cjt8xtgW7N7C4w="; proxyVendor = true; nativeBuildInputs = [ installShellFiles ]; preBuild = '' mkdir -p build/ui touch build/ui/index.html Loading @@ -26,6 +30,14 @@ buildGoModule rec { ldflags = [ "-s" "-w" "-X" "github.com/defenseunicorns/zarf/src/config.CLIVersion=${src.rev}" "-X" "k8s.io/component-base/version.gitVersion=v0.0.0+zarf${src.rev}" "-X" "k8s.io/component-base/version.gitCommit=${src.rev}" "-X" "k8s.io/component-base/version.buildDate=1970-01-01T00:00:00Z" ]; postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' export K9S_LOGS_DIR=$(mktemp -d) installShellCompletion --cmd zarf \ --bash <($out/bin/zarf completion --no-log-file bash) \ --fish <($out/bin/zarf completion --no-log-file fish) \ --zsh <($out/bin/zarf completion --no-log-file zsh) ''; meta = with lib; { description = "DevSecOps for Air Gap & Limited-Connection Systems. https://zarf.dev"; mainProgram = "zarf"; Loading