Skip to content

Commit 69bd8dc

Browse files
authored
ssvnode: 1.3.8 -> 2.0.0 (#547)
* ssvnode: 1.3.8 -> 2.0.0-unstable.0 * 2.0.0-unstable.0 -> 2.0.0-unstable.2 * ssvnode: 2.0.0-unstable.2 -> 2.0.0
1 parent d325e9e commit 69bd8dc

File tree

2 files changed

+24
-10
lines changed

2 files changed

+24
-10
lines changed

pkgs/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
bls = callPackage2311 ./bls {};
7474
mcl = callPackage2311 ./mcl {};
7575
};
76-
ssvnode = callPackage2311 ./ssvnode {
76+
ssvnode = callPackage ./ssvnode {
7777
bls = callPackage2311 ./bls {};
7878
mcl = callPackage2311 ./mcl {};
7979
};

pkgs/ssvnode/default.nix

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,43 @@
11
{
22
bls,
3-
mcl,
4-
buildGo120Module,
3+
buildGoModule,
54
fetchFromGitHub,
5+
mcl,
6+
openssl,
67
}:
7-
buildGo120Module rec {
8+
buildGoModule rec {
89
pname = "ssv";
9-
version = "1.3.8";
10+
version = "2.0.0";
1011

1112
src = fetchFromGitHub {
12-
owner = "bloxapp";
13+
owner = "ssvlabs";
1314
repo = "${pname}";
14-
rev = "v${version}";
15-
hash = "sha256-5JUaJwo8snUrw/Uhk23uiGr+YV4UogiyvLGXXPiYICY=";
15+
rev = "e39f1d0ec67c47f6ba437d83367aba0d2b4d34dd";
16+
hash = "sha256-2/o+FyfJcX/Av82O3DV3gSkLHDtJCoUw2+zpozyr628=";
1617
};
1718

18-
vendorHash = "sha256-paFwSCVQEEkZzd/QHGBfaPvDwSAXYxvS5Cq+N18QTIU=";
19+
vendorHash = "sha256-lr62X/Fo97CzxKgwdNCv3OELa6yMSEQBOs2cG53rYJY=";
1920

2021
buildInputs = [bls mcl];
2122

23+
ldflags = [
24+
"-X main.Commit=${src.rev}"
25+
"-X main.Version=v${version}"
26+
];
27+
28+
# Dynamic loading of openssl
29+
# See: https://github.com/ssvlabs/ssv/blob/v2.0.0-unstable.0/operator/keys/rsa_linux.go#L30
30+
postFixup = ''
31+
patchelf \
32+
--add-rpath ${openssl.out}/lib \
33+
$out/bin/ssvnode
34+
'';
35+
2236
subPackages = ["cmd/ssvnode"];
2337

2438
meta = {
2539
description = "Secret-Shared-Validator(SSV) for ethereum staking";
26-
homepage = "https://github.com/bloxapp/ssv";
40+
homepage = "https://github.com/ssvlabs/ssv";
2741
platforms = ["x86_64-linux"];
2842
mainProgram = "ssvnode";
2943
};

0 commit comments

Comments
 (0)