summary refs log tree commit diff
path: root/pkgs/tools/security/fulcio/default.nix
diff options
context:
space:
mode:
authorThomas Gerbet <thomas@gerbet.me>2022-10-18 08:46:19 +0200
committerThomas Gerbet <thomas@gerbet.me>2022-10-18 08:46:19 +0200
commitbeb95747bb40edcaefdbdcbab9d1c353076e475b (patch)
tree191c9cce24fbe97deb247f74c753898d2175268a /pkgs/tools/security/fulcio/default.nix
parentbc8fa2fd05041cfc779f6567cca90890c6ea27e6 (diff)
downloadnixpkgs-beb95747bb40edcaefdbdcbab9d1c353076e475b.tar
nixpkgs-beb95747bb40edcaefdbdcbab9d1c353076e475b.tar.gz
nixpkgs-beb95747bb40edcaefdbdcbab9d1c353076e475b.tar.bz2
nixpkgs-beb95747bb40edcaefdbdcbab9d1c353076e475b.tar.lz
nixpkgs-beb95747bb40edcaefdbdcbab9d1c353076e475b.tar.xz
nixpkgs-beb95747bb40edcaefdbdcbab9d1c353076e475b.tar.zst
nixpkgs-beb95747bb40edcaefdbdcbab9d1c353076e475b.zip
fulcio: 0.6.0 -> 1.0.0
https://github.com/sigstore/fulcio/releases/tag/v1.0.0
Diffstat (limited to 'pkgs/tools/security/fulcio/default.nix')
-rw-r--r--pkgs/tools/security/fulcio/default.nix16
1 files changed, 8 insertions, 8 deletions
diff --git a/pkgs/tools/security/fulcio/default.nix b/pkgs/tools/security/fulcio/default.nix
index d099cd2c0db..91ec0a5c250 100644
--- a/pkgs/tools/security/fulcio/default.nix
+++ b/pkgs/tools/security/fulcio/default.nix
@@ -2,13 +2,13 @@
 
 buildGoModule rec {
   pname = "fulcio";
-  version = "0.6.0";
+  version = "1.0.0";
 
   src = fetchFromGitHub {
     owner = "sigstore";
     repo = pname;
     rev = "v${version}";
-    sha256 = "sha256-ZWDvFSx+zH/P0ZfdqxAe+c4jFUH8mfY1vpUXlIxw1sI=";
+    sha256 = "sha256-djnDHRD/vHfsem03896qcEb6uzgW3OCMBLqMDHca9vY=";
     # populate values that require us to use git. By doing this in postFetch we
     # can delete .git afterwards and maintain better reproducibility of the src.
     leaveDotGit = true;
@@ -20,7 +20,7 @@ buildGoModule rec {
       find "$out" -name .git -print0 | xargs -0 rm -rf
     '';
   };
-  vendorSha256 = "sha256-LLvaaOZzp9b99eYOsfvbPRwZqSNfoinVUfYDmPiw5Mk=";
+  vendorSha256 = "sha256-X+M/E1kWhgS408PHwMg5jnDn2ad1NW6xvlLucuOLAeg=";
 
   nativeBuildInputs = [ installShellFiles ];
 
@@ -29,14 +29,14 @@ buildGoModule rec {
   ldflags = [
     "-s"
     "-w"
-    "-X github.com/sigstore/fulcio/pkg/server.gitVersion=v${version}"
-    "-X github.com/sigstore/fulcio/pkg/server.gitTreeState=clean"
+    "-X sigs.k8s.io/release-utils/version.gitVersion=v${version}"
+    "-X sigs.k8s.io/release-utils/version.gitTreeState=clean"
   ];
 
   # ldflags based on metadata from git and source
   preBuild = ''
-    ldflags+=" -X github.com/sigstore/fulcio/pkg/server.gitCommit=$(cat COMMIT)"
-    ldflags+=" -X github.com/sigstore/fulcio/pkg/server.buildDate=$(cat SOURCE_DATE_EPOCH)"
+    ldflags+=" -X sigs.k8s.io/release-utils/version.gitCommit=$(cat COMMIT)"
+    ldflags+=" -X sigs.k8s.io/release-utils/version.buildDate=$(cat SOURCE_DATE_EPOCH)"
   '';
 
   preCheck = ''
@@ -59,7 +59,7 @@ buildGoModule rec {
   installCheckPhase = ''
     runHook preInstallCheck
     $out/bin/fulcio --help
-    $out/bin/fulcio version | grep "v${version}"
+    $out/bin/fulcio version 2>&1 | grep "v${version}"
     runHook postInstallCheck
   '';