summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-01-02 14:54:02 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-01-02 14:54:02 +0100
commit2b6a779a3e0ce0f4f5aa00222e8474a608ddb0ca (patch)
tree9f930743ccfc821e939307c8b47a201a7c778d71
parentb0210d68ec8082a68d0e3abb5cdbde681f58fe3c (diff)
Add shell.nix file for development in nix shell
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--shell.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix
new file mode 100644
index 0000000..27eb6b5
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,25 @@
+{ example ? "1", ... }:
+
+let
+ moz_overlay = import (
+ builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz
+ );
+
+ pkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
+in
+pkgs.mkShell {
+ buildInputs = with pkgs; [
+ rustChannels.nightly.rust-std
+ rustChannels.nightly.rust
+ rustChannels.nightly.rustc
+ rustChannels.nightly.cargo
+
+ cmake
+ gcc
+ openssl
+ pkgconfig
+ ];
+
+ LIBCLANG_PATH = "${pkgs.llvmPackages.libclang}/lib";
+}
+