37 lines
704 B
Nix
37 lines
704 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
|
|
diesel-cli
|
|
sqlite
|
|
libsodium
|
|
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";
|
|
|
|
# libsodium-sys
|
|
SODIUM_USE_PKG_CONFIG = "1";
|
|
SODIUM_SHARED = "1";
|
|
}
|