mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-11 12:46:37 +08:00
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}
|
||
|
'';
|
||
|
}
|