mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00: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.
12 lines
260 B
Nix
12 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}
|
|
'';
|
|
}
|