core/pkgs/by-name/ru/rust/rust-lib-src.nix
2024-05-13 11:34:52 -04:00

7 lines
123 B
Nix

{ runCommand, rustc }:
runCommand "rust-lib-src" { } ''
tar --strip-components=1 -xzf ${rustc.src}
mv library $out
''