nushell/shell.nix
2019-10-14 22:03:17 +02:00

31 lines
605 B
Nix

{ pkgs ? import <nixpkgs> {
overlays = [
(import (builtins.fetchTarball
"https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz"))
];
} }:
with pkgs;
let
nightly = (pkgs.rustChannelOf {
date = "2019-09-01";
channel = "nightly";
}).rust.override {
extensions = [
"clippy-preview"
"rls-preview"
"rust-analysis"
"rust-src"
"rustfmt-preview"
];
};
nu-deps = [ openssl_1_1 pkg-config x11 python3 ];
rust = [ nightly rustracer cargo-watch ];
in stdenv.mkDerivation {
name = "nushell-rust";
buildInputs = nu-deps ++ rust;
}