From 781c42cc9ce2e6a3f1024ea1f4e3f071cc8f2dd4 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sun, 24 Oct 2021 17:55:57 +0530 Subject: flake build with json feature, add better usage docs --- flake.nix | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index a319266..2c1db03 100644 --- a/flake.nix +++ b/flake.nix @@ -60,8 +60,10 @@ cargo ]; buildPhase = '' - cargo build -p statix --release --offline + cargo build -p statix --all-features --release --offline ''; + # statix does not have any tests currently + doCheck = false; installPhase = '' install -Dm775 ./target/release/statix $out/bin/statix ''; @@ -85,19 +87,17 @@ devShell = forAllSystems (system: let pkgs = nixpkgsFor.${system}; - inherit (rustChannel pkgs) rust rust-src; + inherit (rustChannel pkgs) rust rust-src rust-analysis; in with pkgs; mkShell rec { - buildInputs = - [ - rust-analyzer - rustfmt - cargo - cargo-watch - rust - rust-src - ]; + buildInputs = [ + rustfmt + cargo + cargo-watch + rust + rust-src + ]; RUST_SRC_PATH = "${rust-src}/lib/rustlib/src/rust/library"; RUST_LOG = "info"; RUST_BACKTRACE = 1; -- cgit v1.2.3