wasmcloud/shell.nix

23 lines
587 B
Nix

let
sources = import ./nix/sources.nix;
rust = import ./nix/rust.nix { inherit sources; };
pkgs = import sources.nixpkgs { };
in pkgs.mkShell rec {
buildInputs = with pkgs; [
rust
diesel-cli
postgresql
pgcli
cargo-watch
pkg-config
openssl
];
B2_CREDFILE = "./var/secret/b2-creds.txt";
B2_MODULE_BUCKET_NAME = "wasmcloud-modules";
RUST_LOG = "info,wasmcloud_api=debug";
DATABASE_URL = "postgresql://postgres:hunter2@localhost:5432/wasmcloud";
ROCKET_DATABASES = ''{ main_data = { url = "${DATABASE_URL}" } }'';
JWT_SECRET = "hunter2";
}