summary refs log tree commit diff
diff options
context:
space:
mode:
authorThomas Gerbet <thomas@gerbet.me>2022-08-01 14:28:35 +0200
committerFranz Pletz <fpletz@fnordicwalking.de>2022-08-01 16:40:23 +0200
commitb8083a98af4af78712d40d7b986915e2b52ec35c (patch)
tree3a96974ea0e89f6f6050ef0f8585880c1da16d05
parentad20aa1d0f74da9be42bf3eb4b17430fafde5a67 (diff)
downloadnixpkgs-b8083a98af4af78712d40d7b986915e2b52ec35c.tar
nixpkgs-b8083a98af4af78712d40d7b986915e2b52ec35c.tar.gz
nixpkgs-b8083a98af4af78712d40d7b986915e2b52ec35c.tar.bz2
nixpkgs-b8083a98af4af78712d40d7b986915e2b52ec35c.tar.lz
nixpkgs-b8083a98af4af78712d40d7b986915e2b52ec35c.tar.xz
nixpkgs-b8083a98af4af78712d40d7b986915e2b52ec35c.tar.zst
nixpkgs-b8083a98af4af78712d40d7b986915e2b52ec35c.zip
fulcio: 0.4.1 -> 0.5.2
https://github.com/sigstore/fulcio/releases/tag/v0.5.2
https://github.com/sigstore/fulcio/releases/tag/v0.5.1
https://github.com/sigstore/fulcio/releases/tag/v0.5.0
-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 acfce66834f..e1e0353847b 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.4.1";
+  version = "0.5.2";
 
   src = fetchFromGitHub {
     owner = "sigstore";
     repo = pname;
     rev = "v${version}";
-    sha256 = "sha256-b+2M28cI+4UkzrIqI+BioxJsGqT0pqJVPTPmXe+NsZo=";
+    sha256 = "sha256-jNsW4eUpqa1a1itEnY1932ta3UpjLxhbHz9byM6/Rxo=";
     # 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-INPMsSyjFs4GyapOlc/k5fcI2ePUKgp4BtASOKwQhck=";
+  vendorSha256 = "sha256-L+20HvkRAs00tbD5q1ATeLrKoa7VFQlrXChh7AtK0PI=";
 
   nativeBuildInputs = [ installShellFiles ];
 
@@ -29,14 +29,14 @@ buildGoModule rec {
   ldflags = [
     "-s"
     "-w"
-    "-X github.com/sigstore/fulcio/pkg/api.gitVersion=v${version}"
-    "-X github.com/sigstore/fulcio/pkg/api.gitTreeState=clean"
+    "-X github.com/sigstore/fulcio/pkg/server.gitVersion=v${version}"
+    "-X github.com/sigstore/fulcio/pkg/server.gitTreeState=clean"
   ];
 
   # ldflags based on metadata from git and source
   preBuild = ''
-    ldflags+=" -X github.com/sigstore/fulcio/pkg/api.gitCommit=$(cat COMMIT)"
-    ldflags+=" -X github.com/sigstore/fulcio/pkg/api.buildDate=$(cat SOURCE_DATE_EPOCH)"
+    ldflags+=" -X github.com/sigstore/fulcio/pkg/server.gitCommit=$(cat COMMIT)"
+    ldflags+=" -X github.com/sigstore/fulcio/pkg/server.buildDate=$(cat SOURCE_DATE_EPOCH)"
   '';
 
   preCheck = ''
@@ -44,7 +44,7 @@ buildGoModule rec {
     unset subPackages
 
     # skip test that requires networking
-    substituteInPlace pkg/config/config_test.go \
+    substituteInPlace pkg/config/config_network_test.go \
       --replace "TestLoad" "SkipLoad"
   '';