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