quorum: 2.5.0 -> 23.4.0
This commit is contained in:
@@ -1,41 +1,35 @@
|
|||||||
{ lib, fetchFromGitHub, buildGoPackage, git, which, removeReferencesTo, go }:
|
{ lib, fetchFromGitHub, buildGoModule }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoModule rec {
|
||||||
pname = "quorum";
|
pname = "quorum";
|
||||||
version = "2.5.0";
|
version = "23.4.0";
|
||||||
|
|
||||||
goPackagePath = "github.com/jpmorganchase/quorum";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jpmorganchase";
|
owner = "Consensys";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0xfdaqp9bj5dkw12gy19lxj73zh7w80j051xclsvnd41sfah86ll";
|
hash = "sha256-N8MlDHo6LQ/m9xFUeOCm6bqDtjnCc86i/s4ebFLjUT0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ git which ];
|
vendorHash = "sha256-dTYKGFqVaAnspvKhfBU10bpSzhtQHGTm6KxnNKUVAIg=";
|
||||||
|
|
||||||
buildPhase = ''
|
patches = [
|
||||||
cd "go/src/$goPackagePath"
|
# Add missing requirements
|
||||||
make geth bootnode swarm
|
./go.mod.patch
|
||||||
'';
|
];
|
||||||
|
|
||||||
installPhase = ''
|
subPackages = [
|
||||||
mkdir -pv $out/bin
|
"cmd/geth"
|
||||||
cp -v build/bin/geth build/bin/bootnode build/bin/swarm $out/bin
|
"cmd/bootnode"
|
||||||
'';
|
];
|
||||||
|
|
||||||
# fails with `GOFLAGS=-trimpath`
|
ldflags = [ "-s" "-w" ];
|
||||||
allowGoReference = true;
|
|
||||||
preFixup = ''
|
|
||||||
find $out -type f -exec ${removeReferencesTo}/bin/remove-references-to -t ${go} '{}' +
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A permissioned implementation of Ethereum supporting data privacy";
|
description = "A permissioned implementation of Ethereum supporting data privacy";
|
||||||
homepage = "https://www.goquorum.com/";
|
homepage = "https://consensys.net/quorum/";
|
||||||
license = licenses.lgpl3;
|
license = licenses.lgpl3;
|
||||||
maintainers = with maintainers; [ mmahut ];
|
maintainers = with maintainers; [ mmahut ];
|
||||||
platforms = subtractLists ["aarch64-linux"] platforms.linux;
|
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
12
pkgs/applications/blockchains/quorum/go.mod.patch
Normal file
12
pkgs/applications/blockchains/quorum/go.mod.patch
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
diff --git a/go.mod b/go.mod
|
||||||
|
index ace412f41..3336c1e08 100644
|
||||||
|
--- a/go.mod
|
||||||
|
+++ b/go.mod
|
||||||
|
@@ -89,6 +89,7 @@ require (
|
||||||
|
golang.org/x/text v0.3.7
|
||||||
|
golang.org/x/time v0.0.0-20201208040808-7e3f01d25324
|
||||||
|
google.golang.org/grpc v1.46.0
|
||||||
|
+ google.golang.org/protobuf v1.28.0
|
||||||
|
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
|
||||||
|
gopkg.in/karalabe/cookiejar.v2 v2.0.0-20150724131613-8dcd6a7f4951
|
||||||
|
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce
|
||||||
Reference in New Issue
Block a user