diff options
| author | Fuwn <[email protected]> | 2021-05-06 00:22:02 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-06 00:22:02 -0700 |
| commit | 1e5af200028111e137f15a2a3c224ca29ecc9670 (patch) | |
| tree | 3e4d3ac94cae3fd7995b6993e61f5980ad2f0688 /shell.nix | |
| parent | chore(global): create version file (diff) | |
| download | whirl-1e5af200028111e137f15a2a3c224ca29ecc9670.tar.xz whirl-1e5af200028111e137f15a2a3c224ca29ecc9670.zip | |
feat(nix): spice it all up
Diffstat (limited to 'shell.nix')
| -rw-r--r-- | shell.nix | 24 |
1 files changed, 19 insertions, 5 deletions
@@ -1,10 +1,24 @@ let sources = import ./nix/sources.nix; - rust = import ./nix/rust.nix { inherit sources; }; - pkgs = import sources.nixpkgs { }; -in -pkgs.mkShell { - buildInputs = with pkgs; [ niv rust ]; + 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 + + # Dhall + dhall + dhall-yaml + + # Dependecy manager + niv + ]; DATABASE_URL = "whirl.sqlite3"; + RUST_SRC_PATH = "${pkgs.latest.rustChannels.nightly.rust-src}/lib/rustlib/src/rust/library"; + RUST_BACKTRACE = "1"; } |