2020-09-13 15:23:53 +00:00
|
|
|
let
|
|
|
|
sources = import ./nix/sources.nix;
|
|
|
|
pkgs =
|
|
|
|
import sources.nixpkgs { overlays = [ (import sources.nixpkgs-mozilla) ]; };
|
2020-11-02 18:06:50 +00:00
|
|
|
rust = import ./nix/rust.nix { };
|
2020-11-10 22:11:05 +00:00
|
|
|
gruvbox = pkgs.callPackage sources.gruvbox-css { };
|
2020-11-02 18:06:50 +00:00
|
|
|
in pkgs.mkShell rec {
|
2020-09-13 15:23:53 +00:00
|
|
|
buildInputs = with pkgs; [
|
2020-10-03 15:08:50 +00:00
|
|
|
# rust
|
2020-11-02 18:06:50 +00:00
|
|
|
rust
|
2020-09-13 15:23:53 +00:00
|
|
|
pkgconfig
|
|
|
|
openssl
|
|
|
|
cmake
|
|
|
|
zlib
|
2020-09-13 16:07:06 +00:00
|
|
|
diesel-cli
|
|
|
|
sqlite
|
2020-11-04 20:50:28 +00:00
|
|
|
libsodium
|
2020-11-02 18:06:50 +00:00
|
|
|
cargo-watch
|
2020-09-13 15:23:53 +00:00
|
|
|
|
2020-10-03 15:08:50 +00:00
|
|
|
# elm
|
|
|
|
elmPackages.elm
|
|
|
|
elmPackages.elm-format
|
|
|
|
elmPackages.elm-language-server
|
|
|
|
elm2nix
|
2020-11-15 20:52:57 +00:00
|
|
|
nodePackages.uglify-js
|
2020-10-03 15:08:50 +00:00
|
|
|
|
2020-11-16 02:52:38 +00:00
|
|
|
# tools
|
|
|
|
entr
|
|
|
|
|
2020-09-13 15:23:53 +00:00
|
|
|
# keep this line if you use bash
|
|
|
|
bashInteractive
|
|
|
|
];
|
2020-09-13 16:07:06 +00:00
|
|
|
|
2020-11-10 22:11:05 +00:00
|
|
|
GRUVBOX_CSS = "${gruvbox}/gruvbox.css";
|
|
|
|
|
2020-09-13 16:55:29 +00:00
|
|
|
DATABASE_URL = "./mi.db";
|
2020-11-02 18:06:50 +00:00
|
|
|
ROCKET_DATABASES = ''{ main_data = { url = "${DATABASE_URL}" } }'';
|
2020-09-13 16:55:29 +00:00
|
|
|
RUST_LOG = "info";
|
2020-11-04 20:50:28 +00:00
|
|
|
|
|
|
|
# libsodium-sys
|
|
|
|
SODIUM_USE_PKG_CONFIG = "1";
|
|
|
|
SODIUM_SHARED = "1";
|
2020-09-13 15:23:53 +00:00
|
|
|
}
|