go-modules: Update files to use vendorSha256
This commit is contained in:
@@ -24,7 +24,7 @@ buildGoModule rec {
|
||||
sha256 = "01nb4if2dix2h95xvqvafil325jjw2a4v1izb9mad0cjqcf8rk6n";
|
||||
};
|
||||
|
||||
modSha256 = "1zp06mpkxaxykw8pr679fg9dd7039qj13j5lknxp7hr8dga0jvpy";
|
||||
vendorSha256 = "1qjlvhizl8cy06cgf4phia70bgbm4lj57z5z2gyr8aglx98bnpdn";
|
||||
|
||||
buildInputs = [ bzip2 zlib snappy zeromq lz4 ];
|
||||
|
||||
@@ -37,6 +37,20 @@ buildGoModule rec {
|
||||
-X github.com/trezor/blockbook/common.buildDate=unknown
|
||||
'';
|
||||
|
||||
goethereum = fetchFromGitHub {
|
||||
owner = "ethereum";
|
||||
repo = "go-ethereum";
|
||||
rev = "v1.8.20";
|
||||
sha256 = "0m2q1nz6f39pyr2rk6vflkwi4ykganzwr7wndpwr9rliw0x8jgi0";
|
||||
};
|
||||
|
||||
overrideModAttrs = (_: {
|
||||
postBuild = ''
|
||||
rm -r vendor/github.com/ethereum/go-ethereum
|
||||
cp -r --reflink=auto ${goethereum} vendor/github.com/ethereum/go-ethereum
|
||||
'';
|
||||
});
|
||||
|
||||
preBuild = lib.optionalString stdenv.isDarwin ''
|
||||
ulimit -n 8192
|
||||
'' + ''
|
||||
|
||||
Reference in New Issue
Block a user