33 lines
629 B
Nix
33 lines
629 B
Nix
let
|
|
sources = import ./nix/sources.nix;
|
|
pkgs =
|
|
import sources.nixpkgs { overlays = [ (import sources.nixpkgs-mozilla) ]; };
|
|
rust = import ./nix/rust.nix { };
|
|
in pkgs.mkShell rec {
|
|
buildInputs = with pkgs; [
|
|
# rust
|
|
rust
|
|
pkgconfig
|
|
openssl
|
|
cmake
|
|
zlib
|
|
libgit2
|
|
diesel-cli
|
|
sqlite
|
|
cargo-watch
|
|
|
|
# elm
|
|
elmPackages.elm
|
|
elmPackages.elm-format
|
|
elmPackages.elm-language-server
|
|
elm2nix
|
|
|
|
# keep this line if you use bash
|
|
bashInteractive
|
|
];
|
|
|
|
DATABASE_URL = "./mi.db";
|
|
ROCKET_DATABASES = ''{ main_data = { url = "${DATABASE_URL}" } }'';
|
|
RUST_LOG = "info";
|
|
}
|