|
39 | 39 |
|
40 | 40 | inherit (pkgs) lib;
|
41 | 41 |
|
42 |
| - toolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain; |
| 42 | + toolchain = pkgs.rust-bin.fromRustupToolchainFile ../../rust-toolchain; |
43 | 43 | craneLib = (crane.mkLib pkgs).overrideToolchain toolchain;
|
44 | 44 |
|
45 | 45 | name = "stacks-core";
|
46 | 46 |
|
47 |
| - versions = (builtins.fromTOML (builtins.readFile ./versions.toml)); |
| 47 | + versions = (builtins.fromTOML (builtins.readFile ../../versions.toml)); |
48 | 48 | version = versions.stacks_node_version;
|
49 | 49 |
|
50 | 50 | # Common arguments can be set here to avoid repeating them later
|
|
68 | 68 | // {
|
69 | 69 | inherit version;
|
70 | 70 | pname = name;
|
71 |
| - src = fileSetForCrate ./.; |
| 71 | + src = fileSetForCrate ../..; |
72 | 72 | }
|
73 | 73 | );
|
74 | 74 |
|
|
83 | 83 | fileSetForCrate =
|
84 | 84 | crate:
|
85 | 85 | lib.fileset.toSource {
|
86 |
| - root = ./.; |
| 86 | + root = ../..; |
87 | 87 | fileset = lib.fileset.unions [
|
88 |
| - ./Cargo.toml |
89 |
| - ./Cargo.lock |
| 88 | + ../../Cargo.toml |
| 89 | + ../../Cargo.lock |
90 | 90 | #
|
91 |
| - ./versions.toml |
| 91 | + ../../versions.toml |
92 | 92 | #
|
93 |
| - ./stx-genesis/name_zonefiles.txt |
94 |
| - ./stx-genesis/name_zonefiles.txt.sha256 |
95 |
| - ./stx-genesis/name_zonefiles-test.txt |
96 |
| - ./stx-genesis/name_zonefiles-test.txt.sha256 |
97 |
| - ./stx-genesis/chainstate.txt |
98 |
| - ./stx-genesis/chainstate.txt.sha256 |
99 |
| - ./stx-genesis/chainstate-test.txt |
100 |
| - ./stx-genesis/chainstate-test.txt.sha256 |
| 93 | + ../../stx-genesis/name_zonefiles.txt |
| 94 | + ../../stx-genesis/name_zonefiles.txt.sha256 |
| 95 | + ../../stx-genesis/name_zonefiles-test.txt |
| 96 | + ../../stx-genesis/name_zonefiles-test.txt.sha256 |
| 97 | + ../../stx-genesis/chainstate.txt |
| 98 | + ../../stx-genesis/chainstate.txt.sha256 |
| 99 | + ../../stx-genesis/chainstate-test.txt |
| 100 | + ../../stx-genesis/chainstate-test.txt.sha256 |
101 | 101 | #
|
102 | 102 | (craneLib.fileset.commonCargoSources crate)
|
103 | 103 | #
|
104 |
| - (lib.fileset.fileFilter (file: file.hasExt "clar") ./.) |
| 104 | + (lib.fileset.fileFilter (file: file.hasExt "clar") ../..) |
105 | 105 | #
|
106 |
| - (craneLib.fileset.commonCargoSources ./clarity) |
107 |
| - (craneLib.fileset.commonCargoSources ./contrib/tools/relay-server) |
108 |
| - (craneLib.fileset.commonCargoSources ./libsigner) |
109 |
| - (craneLib.fileset.commonCargoSources ./libstackerdb) |
110 |
| - (craneLib.fileset.commonCargoSources ./pox-locking) |
111 |
| - (craneLib.fileset.commonCargoSources ./stacks-common) |
112 |
| - (craneLib.fileset.commonCargoSources ./stackslib) |
113 |
| - (craneLib.fileset.commonCargoSources ./stx-genesis) |
114 |
| - (craneLib.fileset.commonCargoSources ./testnet/stacks-node) |
| 106 | + (craneLib.fileset.commonCargoSources ../../clarity) |
| 107 | + (craneLib.fileset.commonCargoSources ../../contrib/tools/relay-server) |
| 108 | + (craneLib.fileset.commonCargoSources ../../libsigner) |
| 109 | + (craneLib.fileset.commonCargoSources ../../libstackerdb) |
| 110 | + (craneLib.fileset.commonCargoSources ../../pox-locking) |
| 111 | + (craneLib.fileset.commonCargoSources ../../stacks-common) |
| 112 | + (craneLib.fileset.commonCargoSources ../../stackslib) |
| 113 | + (craneLib.fileset.commonCargoSources ../../stx-genesis) |
| 114 | + (craneLib.fileset.commonCargoSources ../../testnet/stacks-node) |
115 | 115 | ];
|
116 | 116 | };
|
117 | 117 |
|
|
122 | 122 | pname = "stacks-signer";
|
123 | 123 | cargoFeatures = "--features monitoring_prom";
|
124 | 124 | cargoExtraArgs = "${cargoFeatures} -p ${pname}";
|
125 |
| - src = fileSetForCrate ./stacks-signer; |
| 125 | + src = fileSetForCrate ../../stacks-signer; |
126 | 126 | }
|
127 | 127 | );
|
128 | 128 |
|
|
136 | 136 | pname = name;
|
137 | 137 | cargoFeatures = "--features monitoring_prom,slog_json";
|
138 | 138 | cargoExtraArgs = "${cargoFeatures}";
|
139 |
| - src = fileSetForCrate ./.; |
| 139 | + src = fileSetForCrate ../..; |
140 | 140 | }
|
141 | 141 | );
|
142 | 142 | in
|
|
0 commit comments