core/pkgs/by-name/ru/rust/rust-lib-src.nix

7 lines
123 B
Nix
Raw Normal View History

2024-05-02 00:46:19 +00:00
{ runCommand, rustc }:
runCommand "rust-lib-src" { } ''
tar --strip-components=1 -xzf ${rustc.src}
mv library $out
''