summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2022-08-14 09:53:51 -0500
committerGitHub <noreply@github.com>2022-08-14 09:53:51 -0500
commit3d756e47e22c1c874945892687eaf85422c10823 (patch)
tree334fe0f76605193f905f585237d9931906e045ed /pkgs
parent91a403bdf818b68377e49e75bc9ed443703adcb5 (diff)
parentbb17d4e059e81679aee6dc3f61a7079848f25f4a (diff)
downloadnixpkgs-3d756e47e22c1c874945892687eaf85422c10823.tar
nixpkgs-3d756e47e22c1c874945892687eaf85422c10823.tar.gz
nixpkgs-3d756e47e22c1c874945892687eaf85422c10823.tar.bz2
nixpkgs-3d756e47e22c1c874945892687eaf85422c10823.tar.lz
nixpkgs-3d756e47e22c1c874945892687eaf85422c10823.tar.xz
nixpkgs-3d756e47e22c1c874945892687eaf85422c10823.tar.zst
nixpkgs-3d756e47e22c1c874945892687eaf85422c10823.zip
Merge pull request #186665 from marsam/update-hyperledger
hyperledger-fabric: 2.4.3 -> 2.4.6
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/misc/hyperledger-fabric/default.nix16
1 files changed, 8 insertions, 8 deletions
diff --git a/pkgs/tools/misc/hyperledger-fabric/default.nix b/pkgs/tools/misc/hyperledger-fabric/default.nix
index ba3c9495a43..15bb67d6284 100644
--- a/pkgs/tools/misc/hyperledger-fabric/default.nix
+++ b/pkgs/tools/misc/hyperledger-fabric/default.nix
@@ -5,14 +5,13 @@
 
 buildGoModule rec {
   pname = "hyperledger-fabric";
-  version = "2.4.3";
-  commit = "9711fb5d0c16297584f5c53123f589110828736f";
+  version = "2.4.6";
 
   src = fetchFromGitHub {
     owner = "hyperledger";
     repo = "fabric";
     rev = "v${version}";
-    sha256 = "sha256-gXVahzpuIUWAHq4gJ1rbq943zIuWrl/ojDMQDFfI14I=";
+    sha256 = "sha256-Q0qrDPih3M4YCzjhLFBy51qVvoICwwn1LJf63rYiUUg=";
   };
 
   vendorSha256 = null;
@@ -33,11 +32,12 @@ buildGoModule rec {
     "cmd/peer"
   ];
 
-  ldflags = lib.mapAttrsToList
-    (n: v: "github.com/hyperledger/fabric/common/metadata.${n}=${v}") {
-      Version = version;
-      CommitSha = commit;
-    };
+  ldflags = [
+    "-s"
+    "-w"
+    "-X github.com/hyperledger/fabric/common/metadata.Version=${version}"
+    "-X github.com/hyperledger/fabric/common/metadata.CommitSha=${src.rev}"
+  ];
 
   meta = with lib; {
     description = "High-performance, secure, permissioned blockchain network";