diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-09-10 09:34:20 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-09-10 09:55:55 +0200 |
commit | d53904c28bff45e1332bf47b61b349a8e6b69a1d (patch) | |
tree | 00eb4af74903ad2a2f159753783247c78805913d | |
parent | 627985edc07dc2e647f0378c1361d1515ff4fe68 (diff) |
Add shell.nix file for development env
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | shell.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..80c97c2 --- /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 + + openssl + cmake + gcc + + pkgconfig + ]; + LIBCLANG_PATH = "${pkgs.llvmPackages.libclang}/lib"; +} + |