File tree Expand file tree Collapse file tree 2 files changed +24
-10
lines changed Expand file tree Collapse file tree 2 files changed +24
-10
lines changed Original file line number Diff line number Diff line change 73
73
bls = callPackage2311 ./bls { } ;
74
74
mcl = callPackage2311 ./mcl { } ;
75
75
} ;
76
- ssvnode = callPackage2311 ./ssvnode {
76
+ ssvnode = callPackage ./ssvnode {
77
77
bls = callPackage2311 ./bls { } ;
78
78
mcl = callPackage2311 ./mcl { } ;
79
79
} ;
Original file line number Diff line number Diff line change 1
1
{
2
2
bls ,
3
- mcl ,
4
- buildGo120Module ,
3
+ buildGoModule ,
5
4
fetchFromGitHub ,
5
+ mcl ,
6
+ openssl ,
6
7
} :
7
- buildGo120Module rec {
8
+ buildGoModule rec {
8
9
pname = "ssv" ;
9
- version = "1.3.8 " ;
10
+ version = "2.0.0 " ;
10
11
11
12
src = fetchFromGitHub {
12
- owner = "bloxapp " ;
13
+ owner = "ssvlabs " ;
13
14
repo = "${ pname } " ;
14
- rev = "v ${ version } " ;
15
- hash = "sha256-5JUaJwo8snUrw/Uhk23uiGr+YV4UogiyvLGXXPiYICY =" ;
15
+ rev = "e39f1d0ec67c47f6ba437d83367aba0d2b4d34dd " ;
16
+ hash = "sha256-2/o+FyfJcX/Av82O3DV3gSkLHDtJCoUw2+zpozyr628 =" ;
16
17
} ;
17
18
18
- vendorHash = "sha256-paFwSCVQEEkZzd/QHGBfaPvDwSAXYxvS5Cq+N18QTIU =" ;
19
+ vendorHash = "sha256-lr62X/Fo97CzxKgwdNCv3OELa6yMSEQBOs2cG53rYJY =" ;
19
20
20
21
buildInputs = [ bls mcl ] ;
21
22
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
+
22
36
subPackages = [ "cmd/ssvnode" ] ;
23
37
24
38
meta = {
25
39
description = "Secret-Shared-Validator(SSV) for ethereum staking" ;
26
- homepage = "https://github.com/bloxapp /ssv" ;
40
+ homepage = "https://github.com/ssvlabs /ssv" ;
27
41
platforms = [ "x86_64-linux" ] ;
28
42
mainProgram = "ssvnode" ;
29
43
} ;
You can’t perform that action at this time.
0 commit comments