Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 39 lines 1.0 kB view raw
1# This is the builder for all X.org components. 2 3# After installation, automatically add all "Requires" fields in the 4# pkgconfig files (*.pc) to the propagated build inputs. 5origPostInstall=$postInstall 6postInstall() { 7 if test -n "$origPostInstall"; then eval "$origPostInstall"; fi 8 9 local r p requires 10 set +o pipefail 11 requires=$(grep "Requires:" ${!outputDev}/lib/pkgconfig/*.pc | \ 12 sed "s/Requires://" | sed "s/,/ /g") 13 set -o pipefail 14 15 echo "propagating requisites $requires" 16 17 for r in $requires; do 18 for p in "${pkgsHostHost[@]}" "${pkgsHostTarget[@]}"; do 19 if test -e $p/lib/pkgconfig/$r.pc; then 20 echo " found requisite $r in $p" 21 appendToVar propagatedBuildInputs "$p" 22 fi 23 done 24 done 25} 26 27 28prependToVar installFlags "appdefaultdir=$out/share/X11/app-defaults" 29 30 31if test -n "$x11BuildHook"; then 32 source $x11BuildHook 33fi 34 35 36enableParallelBuilding=1 37enableParallelInstalling=1 38 39genericBuild