Add support for building Rust packages that have multiple sources, i.e., that use the `srcs` and `sourceRoot` attributes instead of just `src`.wip/yesman
parent
023f0f7992
commit
d7ebe7a4f3
@ -1,17 +0,0 @@ |
||||
source $stdenv/setup |
||||
|
||||
# cargo-fetch needs to write to Cargo.lock, even to do nothing. We |
||||
# create a fake checkout with symlinks and and editable Cargo.lock. |
||||
mkdir copy |
||||
cd copy |
||||
for f in $(ls $src); do |
||||
ln -s $src/"$f" . |
||||
done |
||||
rm Cargo.lock |
||||
cp $src/Cargo.lock . |
||||
chmod +w Cargo.lock |
||||
|
||||
$fetcher . $out |
||||
|
||||
cd .. |
||||
rm -rf copy |
Loading…
Reference in new issue