aboutsummaryrefslogtreecommitdiff
path: root/shell.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-06 17:33:46 +0000
committerFuwn <[email protected]>2021-05-06 17:33:46 +0000
commit3655d61ca201b20fcb5e4fa0192ddcafbf6f7628 (patch)
tree4f62722b72bd4aae74d54945aaac11e6ee448a88 /shell.nix
parentetc: Remove useless CORS headers (diff)
downloadapi-3655d61ca201b20fcb5e4fa0192ddcafbf6f7628.tar.xz
api-3655d61ca201b20fcb5e4fa0192ddcafbf6f7628.zip
feat(global): :star:
Diffstat (limited to 'shell.nix')
-rw-r--r--shell.nix22
1 files changed, 18 insertions, 4 deletions
diff --git a/shell.nix b/shell.nix
index 2fbdb27..bbbb0af 100644
--- a/shell.nix
+++ b/shell.nix
@@ -1,9 +1,23 @@
let
sources = import ./nix/sources.nix;
- rust = import ./nix/rust.nix { inherit sources; };
- pkgs = import sources.nixpkgs { };
+ 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 ];
+ buildInputs = with pkgs; [
+ # Rust
+ rust
- # GITHUB_TOKEN = "";
+ # Dhall
+ dhall
+ dhall-yaml
+
+ # Dependecy manager
+ niv
+ ];
+
+ RUST_SRC_PATH = "${pkgs.latest.rustChannels.nightly.rust-src}/lib/rustlib/src/rust/library";
+ RUST_BACKTRACE = "1";
}