aboutsummaryrefslogtreecommitdiff
path: root/shell.nix
diff options
context:
space:
mode:
Diffstat (limited to 'shell.nix')
-rw-r--r--shell.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix
new file mode 100644
index 0000000..1fec263
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,29 @@
+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
+ cargo-watch
+ cargo-udeps
+
+ # System
+ openssl
+ pkg-config
+
+ # Dhall
+ dhall
+ dhall-yaml
+
+ # Dependecy manager
+ niv
+ ];
+
+ RUST_SRC_PATH = "${pkgs.latest.rustChannels.nightly.rust-src}/lib/rustlib/src/rust/library";
+}