mirror of
https://github.com/nushell/nushell.git
synced 2025-06-13 05:26:59 +02:00
Adds racer, formats shell.nix
This commit is contained in:
parent
d2eb6f6646
commit
f0ca0312f3
25
shell.nix
25
shell.nix
@ -1,10 +1,25 @@
|
|||||||
let
|
let
|
||||||
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
|
moz_overlay = import (builtins.fetchTarball
|
||||||
|
"https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz");
|
||||||
|
|
||||||
nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
|
nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
|
||||||
nightly = ((nixpkgs.rustChannelOf { date = "2019-09-01"; channel = "nightly"; }).rust.override { extensions = [ "rust-src" "rls-preview" "clippy-preview" "rust-analysis" "rustfmt-preview" ];});
|
|
||||||
in
|
nightly = ((nixpkgs.rustChannelOf {
|
||||||
with nixpkgs;
|
date = "2019-09-01";
|
||||||
|
channel = "nightly";
|
||||||
|
}).rust.override {
|
||||||
|
extensions = [
|
||||||
|
"rust-src"
|
||||||
|
"rls-preview"
|
||||||
|
"clippy-preview"
|
||||||
|
"rust-analysis"
|
||||||
|
"rustfmt-preview"
|
||||||
|
];
|
||||||
|
});
|
||||||
|
|
||||||
|
in with nixpkgs;
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "nushell-rust";
|
name = "nushell-rust";
|
||||||
buildInputs = [ nightly openssl_1_1 pkg-config ];
|
buildInputs = [ nightly openssl_1_1 pkg-config rustracer ];
|
||||||
|
RUST_SRC_PATH = "${nightly}/lib/rustlib/src/rust/src";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user