1 if [ -e "$NIX_ATTRS_SH_FILE" ]; then .
"$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh
]; then . .attrs.sh
; fi
2 # This is the builder for all X.org components.
6 # After installation, automatically add all "Requires" fields in the
7 # pkgconfig files (*.pc) to the propagated build inputs.
8 origPostInstall
=$postInstall
10 if test -n "$origPostInstall"; then eval "$origPostInstall"; fi
14 requires
=$
(grep "Requires:" ${!outputDev}/lib
/pkgconfig
/*.pc | \
15 sed "s/Requires://" |
sed "s/,/ /g")
18 echo "propagating requisites $requires"
20 for r
in $requires; do
21 for p
in "${pkgsHostHost[@]}" "${pkgsHostTarget[@]}"; do
22 if test -e $p/lib
/pkgconfig
/$r.pc
; then
23 echo " found requisite $r in $p"
24 propagatedBuildInputs
+=" $p"
31 installFlags
="appdefaultdir=$out/share/X11/app-defaults $installFlags"
34 if test -n "$x11BuildHook"; then
39 enableParallelBuilding
=1
40 enableParallelInstalling
=1