aboutsummaryrefslogtreecommitdiff
path: root/shell.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-06 00:22:02 +0000
committerFuwn <[email protected]>2021-05-06 00:22:02 +0000
commitcfb54fcd29fb25f12c483897873fb98f85269d3b (patch)
tree564b20278d8125bde58cec07cfe79b4537f37d2b /shell.nix
parentchore(global): create version file (diff)
downloadwhirl-cfb54fcd29fb25f12c483897873fb98f85269d3b.tar.xz
whirl-cfb54fcd29fb25f12c483897873fb98f85269d3b.zip
feat(nix): spice it all up
Diffstat (limited to 'shell.nix')
-rw-r--r--shell.nix24
1 files changed, 19 insertions, 5 deletions
diff --git a/shell.nix b/shell.nix
index b7651ac..9013b15 100644
--- a/shell.nix
+++ b/shell.nix
@@ -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";
}