Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
491 B · 31 lines
Nix
1234567891011121314151617181920212223242526272829303132{ 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" ] ) }}''