diff options
author | Matthias Beyer <matthias.beyer@ifm.com> | 2022-01-07 09:15:20 +0100 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@ifm.com> | 2022-02-17 13:06:59 +0100 |
commit | 69db2ae2a22b331eea019f8ff67669392a13b30f (patch) | |
tree | b784c2bc50ae475d20f17a32641d6822135f20ad | |
parent | b8fdbff8a4595307c58adfe38b781579c08528e9 (diff) |
Add shell.nix for development setupbuild-with-nix
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rw-r--r-- | shell.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix new file mode 100644 index 00000000..537ad86f --- /dev/null +++ b/shell.nix @@ -0,0 +1,20 @@ +{ sources ? (import ./nix/sources.nix) +, mozilla ? (import sources.nixpkgs-mozilla) +, pkgs ? (import sources.nixpkgs { overlays = [ mozilla ]; config = {}; }) +, channel ? "stable" +}: + +let + rustchannel = pkgs.rustChannelOf { inherit channel; }; +in +pkgs.mkShell { + buildInputs = with pkgs; [ + rustchannel.rust-std + rustchannel.rust + rustchannel.rustc + rustchannel.cargo + ]; + + LIBCLANG_PATH = "${pkgs.llvmPackages.libclang}/lib"; +} + |