Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 741a204

Browse files
committed
Also add the top level flake for hacking on the substrate as whole
1 parent fa8bf45 commit 741a204

File tree

5 files changed

+83
-1
lines changed

5 files changed

+83
-1
lines changed

.envrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

bin/node-template/flake.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
rustfmt
1818
];
1919

20-
LIBCLANG_PATH="${pkgs.libclang.lib}/lib";
20+
LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
2121
};
2222
});
2323
}

flake.lock

+43
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
inputs = {
3+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
4+
flake-utils.url = "github:numtide/flake-utils";
5+
};
6+
7+
outputs = { self, nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system:
8+
let
9+
pkgs = import nixpkgs { inherit system; };
10+
in
11+
{
12+
devShells.default = pkgs.mkShell {
13+
packages = with pkgs; [
14+
rustup
15+
clang
16+
protobuf
17+
gnumake
18+
rustfmt
19+
];
20+
21+
LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
22+
};
23+
});
24+
}

rust-toolchain.toml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[toolchain]
2+
channel = "nightly"
3+
components = [
4+
"cargo",
5+
"clippy",
6+
"rust-analyzer",
7+
"rust-src",
8+
"rust-std",
9+
"rustc-dev",
10+
"rustc",
11+
"rustfmt",
12+
]
13+
targets = [ "wasm32-unknown-unknown" ]
14+
profile = "minimal"

0 commit comments

Comments
 (0)