nixpkgs/pkgs/development/compilers/rust/rust-src.nix
2019-11-01 23:02:34 +08:00

12 lines
282 B
Nix

{ stdenv, rustc }:
stdenv.mkDerivation {
name = "rust-src";
src = rustc.src;
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
mv src $out
rm -rf $out/{ci,doc,etc,grammar,llvm-project,llvm-emscripten,rtstartup,rustllvm,test,tools,vendor,stdarch}
'';
}