Skip to content

Commit 567b55a

Browse files
committed
build src
1 parent 9271a38 commit 567b55a

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

tests/nix/evm/default.nix

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,25 @@ in
5757
ldflags
5858
;
5959
stdenv = buildStdenv;
60-
src = fetchFromGitHub {
61-
owner = "cosmos";
62-
repo = "evm";
63-
rev = "79bcc14fefa4b5c82386a3fb0724c3f9a7688ba5";
64-
hash = "sha256-QoQR7VBkAUMTj9M4qbAK76avjgiyH8htUeFFggVDExA=";
65-
};
6660

67-
vendorHash = "sha256-DO9SS1c5p9hSMR2M+bCxci/kdjpN7a9TZhMZhq2Efag=";
61+
src = lib.sourceByRegex ../../.. [
62+
"^(evmd|ante|api|client|crypto|encoding|ethereum|ibc|indexer|mempool|metrics|precompiles|proto|rpc|server|testutil|utils|version|wallets|x|eips|contracts|go.mod|go.sum|interfaces.go)($|/.*)"
63+
"^tests(/.*[.]go)?$"
64+
];
65+
66+
vendorHash = null;
6867
proxyVendor = true;
69-
sourceRoot = "source/evmd";
68+
69+
setSourceRoot = ''
70+
export sourceRoot=$(find . -maxdepth 2 -name "evmd" -type d | head -1)
71+
echo "evmd at: $sourceRoot"
72+
'';
7073
subPackages = [ "cmd/evmd" ];
71-
7274
preBuild = ''
7375
mkdir -p $TMPDIR/lib
7476
export CGO_ENABLED=1
7577
export CGO_LDFLAGS="-L$TMPDIR/lib $CGO_LDFLAGS"
76-
export GOTOOLCHAIN=local
78+
export GOPROXY=https://proxy.golang.org,direct
7779
'';
7880

7981
doCheck = false;

tests/nix/go_1_25.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ let
1111
config = {};
1212
};
1313
in
14-
unstable.go_1_25 or pkgs.go_1_23
14+
unstable.go_1_25

0 commit comments

Comments
 (0)