wasmcloud/shell.nix

14 lines
474 B
Nix
Raw Normal View History

2020-10-26 16:56:24 +00:00
let
sources = import ./nix/sources.nix;
rust = import ./nix/rust.nix { inherit sources; };
pkgs = import sources.nixpkgs { };
2020-10-27 15:43:54 +00:00
in pkgs.mkShell rec {
2020-10-28 13:49:59 +00:00
buildInputs = with pkgs; [ rust diesel-cli postgresql pgcli cargo-watch ];
2020-10-26 16:56:24 +00:00
2020-10-30 16:09:53 +00:00
RUST_LOG = "info,wasmcloud_api=debug,wasmcloud_api::*=debug";
2020-10-27 15:43:54 +00:00
DATABASE_URL = "postgresql://postgres:hunter2@localhost:5432/wasmcloud";
ROCKET_DATABASES = ''
{ main_data = { url = "${DATABASE_URL}" } }'';
2020-10-28 16:20:00 +00:00
JWT_SECRET = "hunter2";
2020-10-26 16:56:24 +00:00
}