mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 21:09:00 +02:00
X.Org builder: always autoPropagate buildInputs
svn path=/nixpkgs/branches/stdenv-updates/; revision=9823
This commit is contained in:
parent
c116932a7e
commit
95f5f51bae
|
@ -4,11 +4,13 @@ source $stdenv/setup
|
|||
|
||||
# After installation, automatically add all "Requires" fields in the
|
||||
# pkgconfig files (*.pc) to the propagated build inputs.
|
||||
origPostInstall=$postInstall
|
||||
postInstall=postInstall
|
||||
postInstall() {
|
||||
if test -n "$origPostInstall"; then eval "$origPostInstall"; fi
|
||||
if test -n "$postInstall"; then
|
||||
postInstall="$postInstall; autoPropagateBuildInputs"
|
||||
else
|
||||
postInstall=autoPropagateBuildInputs
|
||||
fi
|
||||
|
||||
autoPropagateBuildInputs() {
|
||||
local r p requires
|
||||
requires=$(grep "Requires:" $out/lib/pkgconfig/*.pc | \
|
||||
sed "s/Requires://" | sed "s/,/ /g")
|
||||
|
|
Loading…
Reference in a new issue