nixpkgs/pkgs/development/compilers/rust/rust-vendor-src.nix
aleksana 453d6b714e rustPlatform.rustVendorSrc: init
This is needed when compiling against rustLibSrc, for example when using
wasm-pack. The upstream Cargo.lock may not include those dependencies.
2025-06-25 10:24:12 +08:00

7 lines
125 B
Nix

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