# The development environment: `devenv shell`, or direnv with `.envrc`. The package, modules and # checks are in `flake.nix`. # # `devenv up` runs the demo's host side, from `nix/demo/host.nix` (see `docs/demo.md`). { pkgs, ... }: { imports = [ ./nix/demo/host.nix ]; languages.rust.enable = true; # `pkg-config` with OpenSSL for Web Push's payload encryption and SQLite for the web app's # sessions, `git` for the builder's tests packages = with pkgs; [ pkg-config openssl sqlite git nixpkgs-fmt curl jq rage ]; scripts.vm-test = { description = "Run the NixOS VM test of the broker module (needs KVM)"; exec = ''nix build -L --no-link "$DEVENV_ROOT#checks.x86_64-linux.vm" "$@"''; }; # `devenv test` enterTest = '' cargo clippy --all-targets -- -D warnings cargo test ''; }