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

Commit

Permalink
Also add the top level flake for hacking on the substrate as whole
Browse files Browse the repository at this point in the history
  • Loading branch information
farcaller committed Mar 28, 2023
1 parent fa8bf45 commit 741a204
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 1 deletion.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
2 changes: 1 addition & 1 deletion bin/node-template/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
rustfmt
];

LIBCLANG_PATH="${pkgs.libclang.lib}/lib";
LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
};
});
}
43 changes: 43 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
rustup
clang
protobuf
gnumake
rustfmt
];

LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
};
});
}
14 changes: 14 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[toolchain]
channel = "nightly"
components = [
"cargo",
"clippy",
"rust-analyzer",
"rust-src",
"rust-std",
"rustc-dev",
"rustc",
"rustfmt",
]
targets = [ "wasm32-unknown-unknown" ]
profile = "minimal"

0 comments on commit 741a204

Please sign in to comment.