mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
79aee3b57d
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.
11 lines
260 B
Nix
11 lines
260 B
Nix
{ 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}
|
|
'';
|
|
}
|