Skip to content

Commit 4866a50

Browse files
committed
ssvnode: 1.3.8 -> 2.0.0-unstable.0
1 parent 7f9a576 commit 4866a50

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-unstable.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 = "aafa85e73bf0d3579fcc8997ec631a4ad1bf4ffe";
16+
hash = "sha256-uI7Am4zSMZCX1t4JcdtD0T5cd24dy1oed0xm1pG4jGQ=";
1617
};
1718

18-
vendorHash = "sha256-paFwSCVQEEkZzd/QHGBfaPvDwSAXYxvS5Cq+N18QTIU=";
19+
vendorHash = "sha256-cVSbOxyul87/y0lp0x9INw76XzHFTBOv9BjQTs2bvPU=";
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)