rustcSrc: remove unrelated files
This package is used to provide semantic completion in tools like racer and is equivalent to rust-src in rustup. This commit gets rid of a number of files not required for completion.
This commit is contained in:
parent
c0f08557b9
commit
79aee3b57d
11
pkgs/development/compilers/rust/rust-src.nix
Normal file
11
pkgs/development/compilers/rust/rust-src.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{ stdenv, rustc }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "rust-src";
|
||||
src = rustc.src;
|
||||
phases = [ "unpackPhase" "installPhase" ];
|
||||
installPhase = ''
|
||||
mv src $out
|
||||
rm -rf $out/{ci,doc,driver,etc,grammar,llvm,rt,rtstartup,rustllvm,test,tools,vendor}
|
||||
'';
|
||||
}
|
@ -6239,13 +6239,9 @@ with pkgs;
|
||||
inherit rust;
|
||||
};
|
||||
|
||||
rustcSrc = stdenv.mkDerivation {
|
||||
name = "rust-src";
|
||||
src = rust.rustc.src;
|
||||
phases = ["unpackPhase" "installPhase"];
|
||||
installPhase = "mv src $out";
|
||||
rustcSrc = callPackage ../development/compilers/rust/rust-src.nix {
|
||||
inherit (rust) rustc;
|
||||
};
|
||||
|
||||
});
|
||||
|
||||
cargo-edit = callPackage ../tools/package-management/cargo-edit { };
|
||||
|
Loading…
Reference in New Issue
Block a user