From 53144b201c04279a47fcd048e2c17528ff9d8b95 Mon Sep 17 00:00:00 2001 From: didier amyot Date: Wed, 21 Dec 2022 09:52:45 -0500 Subject: [PATCH] I should be working by now. --- README.md | 24 ++++++++++++++++++++++++ flake.nix | 12 ++++++++++-- 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..443f049 --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# Ledger + +## Development + +### Building locally + +```shell +nix build +``` + +### Building dev environment + +#### For ide + +```shell +nix build .#development-environment +``` + +#### For shell + +```shell +nix develop +``` + diff --git a/flake.nix b/flake.nix index 31d7637..b02dd6b 100644 --- a/flake.nix +++ b/flake.nix @@ -25,13 +25,21 @@ # something that work.. ish rustc cargo - rustPlatform.rustcSrc gcc + rustfmt + rustPlatform.rustcSrc + gcc + cargo-tarpaulin ]; }; devShell = with pkgs; mkShell { - buildInputs = [ cargo rustc rustfmt pre-commit rustPackages.clippy ]; + buildInputs = [cargo + rustc + rustfmt + pre-commit + rustPackages.clippy + cargo-tarpaulin]; RUST_SRC_PATH = rustPlatform.rustLibSrc; }; });