Initial commit.
This commit is contained in:
commit
aa666c5487
8 changed files with 160 additions and 0 deletions
38
flake.nix
Normal file
38
flake.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
utils,
|
||||
}:
|
||||
utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
{
|
||||
devShell =
|
||||
with pkgs;
|
||||
mkShell.override { stdenv = pkgs.clangStdenv; } {
|
||||
nativeBuildInputs = [
|
||||
pre-commit
|
||||
cargo
|
||||
cargo-watch
|
||||
rustc
|
||||
rustfmt
|
||||
rustPackages.clippy
|
||||
llvmPackages.bintools
|
||||
];
|
||||
shellHook = ''
|
||||
pre-commit install
|
||||
'';
|
||||
RUST_SRC_PATH = rustPlatform.rustLibSrc;
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue