blob: 96ef86d18d1c1129809e8dad01f64c70cea8e4d5 (
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
37
38
39
40
41
42
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "fulcio";
version = "0.1.1";
src = fetchFromGitHub {
owner = "sigstore";
repo = pname;
rev = "v${version}";
sha256 = "sha256-MvLQMGPyJYqYUljLqsr+qJeeYnxdH9aNGkWpDRvOeh8=";
};
vendorSha256 = "sha256-pRL0et+UOi/tzuQz/Q7UmSA+pVhLJYR8lG8NAbPN9PU=";
ldflags = [ "-s" "-w" ];
# Install completions post-install
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
mv $out/bin/fulcio $out/bin/fulcio-server
installShellCompletion --cmd fulcio-server \
--bash <($out/bin/fulcio-server completion bash) \
--fish <($out/bin/fulcio-server completion fish) \
--zsh <($out/bin/fulcio-server completion zsh)
'';
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
$out/bin/fulcio-server --help
runHook postInstallCheck
'';
meta = with lib; {
homepage = "https://github.com/sigstore/fulcio";
changelog = "https://github.com/sigstore/fulcio/releases/tag/v${version}";
description = "A Root-CA for code signing certs - issuing certificates based on an OIDC email address";
license = licenses.asl20;
maintainers = with maintainers; [ lesuisse jk ];
};
}
|