tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nearcore: 1.27.0 -> 1.28.0
Jörg Thalheim
3 years ago
ac9b3799
9eb60f25
+47
-3
2 changed files
expand all
collapse all
unified
split
pkgs
applications
blockchains
nearcore
0001-make-near-test-contracts-optional.patch
default.nix
+42
pkgs/applications/blockchains/nearcore/0001-make-near-test-contracts-optional.patch
···
1
1
+
From 14635f8a87423f7682e22c4d4bc34551cfe1d10d Mon Sep 17 00:00:00 2001
2
2
+
From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= <joerg@thalheim.io>
3
3
+
Date: Thu, 30 Jun 2022 07:33:44 +0000
4
4
+
Subject: [PATCH] make near-test-contracts optional
5
5
+
MIME-Version: 1.0
6
6
+
Content-Type: text/plain; charset=UTF-8
7
7
+
Content-Transfer-Encoding: 8bit
8
8
+
9
9
+
Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
10
10
+
---
11
11
+
Cargo.lock | 1 -
12
12
+
tools/state-viewer/Cargo.toml | 2 +-
13
13
+
2 files changed, 1 insertion(+), 2 deletions(-)
14
14
+
15
15
+
diff --git a/Cargo.lock b/Cargo.lock
16
16
+
index e1d8b2a83..3317587f5 100644
17
17
+
--- a/Cargo.lock
18
18
+
+++ b/Cargo.lock
19
19
+
@@ -5253,7 +5253,6 @@ dependencies = [
20
20
+
"near-primitives",
21
21
+
"near-primitives-core",
22
22
+
"near-store",
23
23
+
- "near-test-contracts",
24
24
+
"nearcore",
25
25
+
"node-runtime",
26
26
+
"once_cell",
27
27
+
diff --git a/tools/state-viewer/Cargo.toml b/tools/state-viewer/Cargo.toml
28
28
+
index 02346bf71..51cfc4cb5 100644
29
29
+
--- a/tools/state-viewer/Cargo.toml
30
30
+
+++ b/tools/state-viewer/Cargo.toml
31
31
+
@@ -30,7 +30,7 @@ near-network = { path = "../../chain/network" }
32
32
+
near-primitives = { path = "../../core/primitives" }
33
33
+
near-primitives-core = { path = "../../core/primitives-core" }
34
34
+
near-store = { path = "../../core/store" }
35
35
+
-near-test-contracts = { path = "../../runtime/near-test-contracts" }
36
36
+
+#near-test-contracts = { path = "../../runtime/near-test-contracts" }
37
37
+
nearcore = { path = "../../nearcore" }
38
38
+
node-runtime = { path = "../../runtime/runtime" }
39
39
+
40
40
+
--
41
41
+
2.36.1
42
42
+
+5
-3
pkgs/applications/blockchains/nearcore/default.nix
···
4
4
}:
5
5
rustPlatform.buildRustPackage rec {
6
6
pname = "nearcore";
7
7
-
version = "1.27.0";
7
7
+
version = "1.28.0";
8
8
9
9
# https://github.com/near/nearcore/tags
10
10
src = fetchFromGitHub {
···
12
12
repo = "nearcore";
13
13
# there is also a branch for this version number, so we need to be explicit
14
14
rev = "refs/tags/${version}";
15
15
-
sha256 = "sha256-B9HqUa0mBSvsCPzxPt4NqpV99rV4lmQ9Q/z9lxob9oM=";
15
15
+
16
16
+
sha256 = "sha256-DRVlD74XTYgy3GeUd/7OIl2aie8nEJLmrmmkwPRkrA8=";
16
17
};
17
18
18
18
-
cargoSha256 = "sha256-6GIt3J6y/O8XaHQJKRSPRgK2XbghMLif4e2Btdww9Ng=";
19
19
+
cargoSha256 = "sha256-hTqje17EdVkgqReuLnizaK3cBJuqXJXC6x5NuoKJLbs=";
20
20
+
cargoPatches = [ ./0001-make-near-test-contracts-optional.patch ];
19
21
20
22
postPatch = ''
21
23
substituteInPlace neard/build.rs \