forked from M-Labs/artiq
1
0
Fork 0
artiq/nix/pkgs/rust/rust-src.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}
'';
}