
This is needed when compiling against rustLibSrc, for example when using wasm-pack. The upstream Cargo.lock may not include those dependencies.
7 lines
125 B
Nix
7 lines
125 B
Nix
{ runCommand, rustc }:
|
|
|
|
runCommand "rust-vendor-src" { } ''
|
|
tar --strip-components=1 -xzf ${rustc.src}
|
|
mv vendor $out
|
|
''
|