Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
491 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
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"
]
)
}}
''