2023-04-27 15:44:56 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "zarf";
|
2023-07-18 12:35:29 +00:00
|
|
|
version = "0.28.2";
|
2023-04-27 15:44:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "defenseunicorns";
|
|
|
|
repo = "zarf";
|
|
|
|
rev = "v${version}";
|
2023-07-18 12:35:29 +00:00
|
|
|
hash = "sha256-4217HkmTridDkq0c0lqkcbwqxqAceNIVFl/TEDcuxCA=";
|
2023-04-27 15:44:56 +00:00
|
|
|
};
|
|
|
|
|
2023-07-18 12:35:29 +00:00
|
|
|
vendorHash = "sha256-sTI/fpT/5/2ulhCuhsKpY5epJup2TxF2jpRqBI0eOWA=";
|
2023-04-27 15:44:56 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|