12 src = fetchFromGitHub {
13 owner = "defenseunicorns";
16 hash = "sha256-rY9xWqJ+2Yfs6VRHTF89LmuEruAavDI7MgBm4UFEuBs=";
19 vendorHash = "sha256-Cz+w0tOEamCxf61hvQ03X/kXPY+qrmdBN8s26lr/wZ8=";
22 nativeBuildInputs = [ installShellFiles ];
26 touch build/ui/index.html
31 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" ];
33 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
34 export K9S_LOGS_DIR=$(mktemp -d)
35 installShellCompletion --cmd zarf \
36 --bash <($out/bin/zarf completion --no-log-file bash) \
37 --fish <($out/bin/zarf completion --no-log-file fish) \
38 --zsh <($out/bin/zarf completion --no-log-file zsh)
42 description = "DevSecOps for Air Gap & Limited-Connection Systems. https://zarf.dev";
44 homepage = "https://github.com/defenseunicorns/zarf.git";
45 license = licenses.asl20;
46 maintainers = with maintainers; [ ragingpastry ];