My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/compilers/rust/rust-src.nix

21 lines
400 B

{ lib, runCommand, rustc, minimalContent ? true }:
runCommand "rust-src" { } ''
tar -xzf ${rustc.src}
mv rustc-${rustc.version}-src $out
rm -rf $out/{${lib.concatStringsSep "," ([
"ci"
"doc"
"etc"
"grammar"
"llvm-project"
"llvm-emscripten"
"rtstartup"
"rustllvm"
"test"
"vendor"
] ++ lib.optionals minimalContent [
"tools"
"stdarch"
])}}
''