mi/shell.nix

34 lines
661 B
Nix
Raw Normal View History

2020-09-13 15:23:53 +00:00
let
sources = import ./nix/sources.nix;
pkgs =
import sources.nixpkgs { overlays = [ (import sources.nixpkgs-mozilla) ]; };
2020-09-13 16:55:29 +00:00
ruststable = (pkgs.latest.rustChannels.stable.rust.override {
extensions = [ "rust-src" "rls-preview" "rust-analysis" "rustfmt-preview" ];
});
2020-09-13 15:23:53 +00:00
in pkgs.mkShell {
buildInputs = with pkgs; [
2020-10-03 15:08:50 +00:00
# rust
2020-09-13 15:23:53 +00:00
ruststable
pkgconfig
openssl
cmake
zlib
libgit2
2020-09-13 16:07:06 +00:00
diesel-cli
sqlite
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-09-13 15:23:53 +00:00
# keep this line if you use bash
bashInteractive
];
2020-09-13 16:07:06 +00:00
2020-09-13 16:55:29 +00:00
DATABASE_URL = "./mi.db";
RUST_LOG = "info";
2020-09-13 15:23:53 +00:00
}