wasmcloud/shell.nix

33 lines
722 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 { };
pahi = import sources.pahi { };
2020-10-27 15:43:54 +00:00
in pkgs.mkShell rec {
2020-10-31 01:05:20 +00:00
buildInputs = with pkgs; with elmPackages; [
# rust
2020-10-30 18:09:35 +00:00
rust
diesel-cli
postgresql
pgcli
cargo-watch
pkg-config
openssl
2020-10-31 01:05:20 +00:00
# wasm
pahi
2020-10-31 01:05:20 +00:00
# elm
elm2nix
elm
elm-language-server
2020-10-30 18:09:35 +00:00
];
2020-10-26 16:56:24 +00:00
2020-10-30 18:09:35 +00:00
B2_CREDFILE = "./var/secret/b2-creds.txt";
B2_MODULE_BUCKET_NAME = "wasmcloud-modules";
2020-10-27 15:43:54 +00:00
DATABASE_URL = "postgresql://postgres:hunter2@localhost:5432/wasmcloud";
2020-10-28 16:20:00 +00:00
JWT_SECRET = "hunter2";
2020-10-31 00:24:05 +00:00
ROCKET_DATABASES = ''{ main_data = { url = "${DATABASE_URL}" } }'';
RUST_LOG = "info,wasmcloud=debug";
2020-10-26 16:56:24 +00:00
}