diff options
| author | Fuwn <[email protected]> | 2021-05-12 23:48:04 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-12 23:48:04 -0700 |
| commit | 6c2ea68bbef0e1fc0b50b80f113b0ebcdf745a40 (patch) | |
| tree | a2330c4408f17cb1fc637f5263ee1432c1b62c2b /shell.nix | |
| download | lime-old-6c2ea68bbef0e1fc0b50b80f113b0ebcdf745a40.tar.xz lime-old-6c2ea68bbef0e1fc0b50b80f113b0ebcdf745a40.zip | |
feat: :star:
Diffstat (limited to 'shell.nix')
| -rw-r--r-- | shell.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..d840e5b --- /dev/null +++ b/shell.nix @@ -0,0 +1,28 @@ +let + sources = import ./nix/sources.nix; + pkgs = import sources.nixpkgs { overlays = [ (import sources.nixpkgs-mozilla) ]; }; + dhallpkgs = import sources.easy-dhall-nix { inherit pkgs; }; + dhall-yaml = dhallpkgs.dhall-yaml-simple; + dhall = dhallpkgs.dhall-simple; + rust = pkgs.callPackage ./nix/rust.nix { }; +in pkgs.mkShell { + buildInputs = with pkgs; [ + # Rust + rust + cargo-make + diesel-cli + cargo-watch + + # Dhall + dhall + dhall-yaml + + # Dependecy manager + niv + ]; + + DATABASE_URL = "lime.sqlite3"; + PORT = "8000"; + RUST_SRC_PATH = "${pkgs.latest.rustChannels.nightly.rust-src}/lib/rustlib/src/rust/library"; + RUST_BACKTRACE = "1"; +} |