diff --git a/pkgs/tools/misc/hyperledger-fabric/default.nix b/pkgs/tools/misc/hyperledger-fabric/default.nix index ba3c9495a43f..15bb67d62842 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";