blob: e580dd7e6ff27f9959d0774fa12cb3b58f1d2758 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "zarf";
version = "0.34.0";
src = fetchFromGitHub {
owner = "defenseunicorns";
repo = "zarf";
rev = "v${version}";
hash = "sha256-o3sfvzUCCW7hwNDrWH1IiRyZHkVnxffJdLS8BqzD5Ng=";
};
vendorHash = "sha256-Co9xKC7J0WGoaYxa+YukrP+6aOuhweZyXaH5wD97ioA=";
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";
mainProgram = "zarf";
homepage = "https://github.com/defenseunicorns/zarf.git";
license = licenses.asl20;
maintainers = with maintainers; [ ragingpastry ];
};
}
|