diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/networking/cluster/zarf')
-rw-r--r-- | nixpkgs/pkgs/applications/networking/cluster/zarf/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/networking/cluster/zarf/default.nix b/nixpkgs/pkgs/applications/networking/cluster/zarf/default.nix new file mode 100644 index 000000000000..ca26ee1c4b3b --- /dev/null +++ b/nixpkgs/pkgs/applications/networking/cluster/zarf/default.nix @@ -0,0 +1,35 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "zarf"; + version = "0.31.0"; + + src = fetchFromGitHub { + owner = "defenseunicorns"; + repo = "zarf"; + rev = "v${version}"; + hash = "sha256-E/M0GliZwe8aDZDtuCea5II452Zy9pD+9MmYFSkmjE8="; + }; + + vendorHash = "sha256-VmukCrEl2hldN0kBgDycp/junmXCZsH+utNJGNjodW0="; + proxyVendor = true; + + preBuild = '' + mkdir -p build/ui + touch build/ui/index.html + ''; + + doCheck = false; + + 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" ]; + + meta = with lib; { + description = "DevSecOps for Air Gap & Limited-Connection Systems. https://zarf.dev"; + homepage = "https://github.com/defenseunicorns/zarf.git"; + license = licenses.asl20; + maintainers = with maintainers; [ ragingpastry ]; + }; +} |