b993c2113c
... in a more generic way. With this commit, if you need to patch a registry package to make it work with Nix, you just need to add a script to patch-registry-deps in the same style as the `pkg-config` script.
8 lines
194 B
Text
8 lines
194 B
Text
for dir in pkg-config-*; do
|
|
[ -d "$dir" ] || continue
|
|
|
|
echo "Patching pkg-config registry dep"
|
|
|
|
substituteInPlace "$dir/src/lib.rs" \
|
|
--replace '"/usr"' '"/nix/store/"'
|
|
done
|