Logo
Explore Help
Sign In
public/nixpkgs
1
0
Fork 0
You've already forked nixpkgs
Code Issues Pull Requests Packages Projects Releases Wiki Activity
nixpkgs/pkgs/build-support/rust/build-rust-package/patch-registry-deps/pkg-config

9 lines
198 B
Plaintext
Raw Normal View History

buildRustPackage: Add a mechanism to patch registry deps ... 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.
2015-04-23 16:37:52 +02:00
for dir in pkg-config-*; do
[ -d "$dir" ] || continue
echo "Patching pkg-config registry dep"
substituteInPlace "$dir/src/lib.rs" \
buildRustPackage: don't hardcode /nix/store, use $NIX_STORE
2016-01-12 11:08:25 -05:00
--replace '"/usr"' '"'"$NIX_STORE"'/"'
buildRustPackage: Add a mechanism to patch registry deps ... 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.
2015-04-23 16:37:52 +02:00
done
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 955ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API