Set up IFC build tools

This commit is contained in:
Savanni D'Gerinel 2022-12-31 12:27:28 -05:00
parent c870980ed2
commit d0b376fe76
4 changed files with 9 additions and 22 deletions

View File

@ -1 +0,0 @@
use_nix

1
ifc/.gitignore vendored
View File

@ -1 +0,0 @@
target

9
ifc/Makefile Normal file
View File

@ -0,0 +1,9 @@
dev:
cargo watch -x build
test:
cargo watch -x test
test-once:
cargo test

View File

@ -1,20 +0,0 @@
let
rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
pkgs = import <pkgs-21.05> { overlays = [ rust_overlay ]; };
unstable = import <unstable> {};
rust = pkgs.rust-bin.stable."1.55.0".default.override {
extensions = [ "rust-src" ];
};
in pkgs.mkShell {
name = "ifc";
buildInputs = [
rust
unstable.rust-analyzer
];
shellHook = ''
if [ -e ~/.nixpkgs/shellhook.sh ]; then . ~/.nixpkgs/shellhook.sh; fi
'';
}