summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-01-03 16:47:14 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-01-03 16:47:14 +0100
commitcfde64c7c9fa1ed3beb3382f34af75e3a96b5c20 (patch)
treefd61c4286c3f565542a6f16a267c6a0fe385421b
parent28eb20f1dcca3add1b895e98a9c6678e59f1ec8a (diff)
Add shell.nix for development and CI infra
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..3244b69
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,25 @@
+{ ... }:
+
+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.stable.rust-std
+ rustChannels.stable.rust
+ rustChannels.stable.rustc
+ rustChannels.stable.cargo
+
+ cmake
+ gcc
+ openssl
+ pkgconfig
+ ];
+
+ LIBCLANG_PATH = "${pkgs.llvmPackages.libclang}/lib";
+}
+