biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / servers / x11 / xorg / builder.sh
blob833acf43a5b0a0a5781b3caba1e13f798a9bdc88
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.
3 source $stdenv/setup
6 # After installation, automatically add all "Requires" fields in the
7 # pkgconfig files (*.pc) to the propagated build inputs.
8 origPostInstall=$postInstall
9 postInstall() {
10 if test -n "$origPostInstall"; then eval "$origPostInstall"; fi
12 local r p requires
13 set +o pipefail
14 requires=$(grep "Requires:" ${!outputDev}/lib/pkgconfig/*.pc | \
15 sed "s/Requires://" | sed "s/,/ /g")
16 set -o pipefail
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"
26 done
27 done
31 installFlags="appdefaultdir=$out/share/X11/app-defaults $installFlags"
34 if test -n "$x11BuildHook"; then
35 source $x11BuildHook
39 enableParallelBuilding=1
40 enableParallelInstalling=1
42 genericBuild