tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
quorum: 2.5.0 -> 23.4.0
Aaron Jheng
2 years ago
ebfac7d5
43bad2a8
+29
-23
2 changed files
expand all
collapse all
unified
split
pkgs
applications
blockchains
quorum
default.nix
go.mod.patch
+17
-23
pkgs/applications/blockchains/quorum/default.nix
···
1
-
{ lib, fetchFromGitHub, buildGoPackage, git, which, removeReferencesTo, go }:
2
3
-
buildGoPackage rec {
4
pname = "quorum";
5
-
version = "2.5.0";
6
-
7
-
goPackagePath = "github.com/jpmorganchase/quorum";
8
9
src = fetchFromGitHub {
10
-
owner = "jpmorganchase";
11
repo = pname;
12
rev = "v${version}";
13
-
sha256 = "0xfdaqp9bj5dkw12gy19lxj73zh7w80j051xclsvnd41sfah86ll";
14
};
15
16
-
buildInputs = [ git which ];
17
18
-
buildPhase = ''
19
-
cd "go/src/$goPackagePath"
20
-
make geth bootnode swarm
21
-
'';
22
23
-
installPhase = ''
24
-
mkdir -pv $out/bin
25
-
cp -v build/bin/geth build/bin/bootnode build/bin/swarm $out/bin
26
-
'';
27
28
-
# fails with `GOFLAGS=-trimpath`
29
-
allowGoReference = true;
30
-
preFixup = ''
31
-
find $out -type f -exec ${removeReferencesTo}/bin/remove-references-to -t ${go} '{}' +
32
-
'';
33
34
meta = with lib; {
35
description = "A permissioned implementation of Ethereum supporting data privacy";
36
-
homepage = "https://www.goquorum.com/";
37
license = licenses.lgpl3;
38
maintainers = with maintainers; [ mmahut ];
39
-
platforms = subtractLists ["aarch64-linux"] platforms.linux;
40
};
41
}
···
1
+
{ lib, fetchFromGitHub, buildGoModule }:
2
3
+
buildGoModule rec {
4
pname = "quorum";
5
+
version = "23.4.0";
0
0
6
7
src = fetchFromGitHub {
8
+
owner = "Consensys";
9
repo = pname;
10
rev = "v${version}";
11
+
hash = "sha256-N8MlDHo6LQ/m9xFUeOCm6bqDtjnCc86i/s4ebFLjUT0=";
12
};
13
14
+
vendorHash = "sha256-dTYKGFqVaAnspvKhfBU10bpSzhtQHGTm6KxnNKUVAIg=";
15
16
+
patches = [
17
+
# Add missing requirements
18
+
./go.mod.patch
19
+
];
20
21
+
subPackages = [
22
+
"cmd/geth"
23
+
"cmd/bootnode"
24
+
];
25
26
+
ldflags = [ "-s" "-w" ];
0
0
0
0
27
28
meta = with lib; {
29
description = "A permissioned implementation of Ethereum supporting data privacy";
30
+
homepage = "https://consensys.net/quorum/";
31
license = licenses.lgpl3;
32
maintainers = with maintainers; [ mmahut ];
33
+
platforms = [ "x86_64-linux" "x86_64-darwin" ];
34
};
35
}
+12
pkgs/applications/blockchains/quorum/go.mod.patch
···
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
diff --git a/go.mod b/go.mod
2
+
index ace412f41..3336c1e08 100644
3
+
--- a/go.mod
4
+
+++ b/go.mod
5
+
@@ -89,6 +89,7 @@ require (
6
+
golang.org/x/text v0.3.7
7
+
golang.org/x/time v0.0.0-20201208040808-7e3f01d25324
8
+
google.golang.org/grpc v1.46.0
9
+
+ google.golang.org/protobuf v1.28.0
10
+
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
11
+
gopkg.in/karalabe/cookiejar.v2 v2.0.0-20150724131613-8dcd6a7f4951
12
+
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce