nixpkgs-suyu/pkgs/development/compilers/rust/rust-lib-src.nix
2022-02-25 22:57:59 +01:00

6 lines
123 B
Nix

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