diff options
| author | Fuwn <[email protected]> | 2021-05-06 00:22:02 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-06 00:22:02 +0000 |
| commit | cfb54fcd29fb25f12c483897873fb98f85269d3b (patch) | |
| tree | 564b20278d8125bde58cec07cfe79b4537f37d2b /shell.nix | |
| parent | chore(global): create version file (diff) | |
| download | whirl-cfb54fcd29fb25f12c483897873fb98f85269d3b.tar.xz whirl-cfb54fcd29fb25f12c483897873fb98f85269d3b.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"; } |