From cd1074d30f22b753ca4c5dd891ff30d1dee0a4bb Mon Sep 17 00:00:00 2001 From: rm-dr <96270320+rm-dr@users.noreply.github.com> Date: Sun, 15 Oct 2023 11:36:53 -0700 Subject: [PATCH] Updated build docs --- CONTRIBUTING.MD | 6 +----- Makefile | 3 +++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTING.MD b/CONTRIBUTING.MD index e8314d3..af18df8 100644 --- a/CONTRIBUTING.MD +++ b/CONTRIBUTING.MD @@ -29,8 +29,4 @@ What to do - `cargo publish` - Update web demo & pull server (`make docker`) - Update aur package - -Test `default.nix` with -``sh -nix-build -E 'let pkgs = import { }; in pkgs.callPackage ./default.nix {}' -`` \ No newline at end of file + - Update `default.nix` (test with `make nix`) \ No newline at end of file diff --git a/Makefile b/Makefile index 10188e0..37be58f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,9 @@ release: cargo build --release +nix: + nix-build -E 'let pkgs = import { }; in pkgs.callPackage ./default.nix {}' + test: cargo test