efl: use vanilla pkg-config

Use vanilla pkg-config to build EFL applications.

The EFL library has a set of pkg-config files (*.pc) which uses
private requirements. The default pkg-config setup on nixpkgs is
patched to disable resolving those requirements. See
http://bugs.freedesktop.org/show_bug.cgi?id=4738 for reference.

As a consequence each package depending on efl has to explicitly set
the search path in order to be able to find the corresponding header
files.

By using vanilla pkg-config this is not necessary (and this is the
expected behaviour for pkg-config), allowing simpler nix expressions.

romildo 7ffee4de d1cbd546

+12 -55
+3 -11
pkgs/desktops/enlightenment/enlightenment.nix
··· 1 { stdenv, fetchurl, pkgconfig, efl, xcbutilkeysyms, libXrandr, libXdmcp, 2 libxcb, libffi, pam, alsaLib, luajit, bzip2, libpthreadstubs, gdbm, libcap, 3 - mesa_glu, xkeyboard_config }: 4 5 stdenv.mkDerivation rec { 6 name = "enlightenment-${version}"; ··· 11 sha256 = "0w5f3707hyfc20i6xqh4jlr5p2yhy1z794061mjsz2rp4w00qmpb"; 12 }; 13 14 - nativeBuildInputs = [ pkgconfig ]; 15 16 buildInputs = [ 17 efl libXdmcp libxcb xcbutilkeysyms libXrandr libffi pam alsaLib 18 - luajit bzip2 libpthreadstubs gdbm 19 ] ++ 20 stdenv.lib.optionals stdenv.isLinux [ libcap ]; 21 - 22 - NIX_CFLAGS_COMPILE = [ 23 - "-I${efl}/include/ecore-imf-1" 24 - "-I${efl}/include/emile-1" 25 - "-I${efl}/include/eo-1" 26 - "-I${efl}/include/ethumb-1" 27 - "-I${efl}/include/ethumb-client-1" 28 - ]; 29 30 preConfigure = '' 31 export USER_SESSION_DIR=$prefix/lib/systemd/user
··· 1 { stdenv, fetchurl, pkgconfig, efl, xcbutilkeysyms, libXrandr, libXdmcp, 2 libxcb, libffi, pam, alsaLib, luajit, bzip2, libpthreadstubs, gdbm, libcap, 3 + mesa_glu, xkeyboard_config, pcre }: 4 5 stdenv.mkDerivation rec { 6 name = "enlightenment-${version}"; ··· 11 sha256 = "0w5f3707hyfc20i6xqh4jlr5p2yhy1z794061mjsz2rp4w00qmpb"; 12 }; 13 14 + nativeBuildInputs = [ (pkgconfig.override { vanilla = true; }) ]; 15 16 buildInputs = [ 17 efl libXdmcp libxcb xcbutilkeysyms libXrandr libffi pam alsaLib 18 + luajit bzip2 libpthreadstubs gdbm pcre 19 ] ++ 20 stdenv.lib.optionals stdenv.isLinux [ libcap ]; 21 22 preConfigure = '' 23 export USER_SESSION_DIR=$prefix/lib/systemd/user
+3 -15
pkgs/desktops/enlightenment/ephoto.nix
··· 1 - { stdenv, fetchurl, pkgconfig, efl, curl, makeWrapper }: 2 3 stdenv.mkDerivation rec { 4 name = "ephoto-${version}"; ··· 9 sha256 = "09kraa5zz45728h2dw1ssh23b87j01bkfzf977m48y1r507sy3vb"; 10 }; 11 12 - nativeBuildInputs = [ pkgconfig makeWrapper ]; 13 - 14 - buildInputs = [ efl curl ]; 15 16 - NIX_CFLAGS_COMPILE = [ 17 - "-I${efl}/include/ecore-con-1" 18 - "-I${efl}/include/ecore-evas-1" 19 - "-I${efl}/include/ecore-imf-1" 20 - "-I${efl}/include/ecore-input-1" 21 - "-I${efl}/include/eet-1" 22 - "-I${efl}/include/eldbus-1" 23 - "-I${efl}/include/emile-1" 24 - "-I${efl}/include/ethumb-1" 25 - "-I${efl}/include/ethumb-client-1" 26 - ]; 27 28 postInstall = '' 29 wrapProgram $out/bin/ephoto --prefix LD_LIBRARY_PATH : ${curl.out}/lib
··· 1 + { stdenv, fetchurl, pkgconfig, efl, pcre, curl, makeWrapper }: 2 3 stdenv.mkDerivation rec { 4 name = "ephoto-${version}"; ··· 9 sha256 = "09kraa5zz45728h2dw1ssh23b87j01bkfzf977m48y1r507sy3vb"; 10 }; 11 12 + nativeBuildInputs = [ (pkgconfig.override { vanilla = true; }) makeWrapper ]; 13 14 + buildInputs = [ efl pcre curl ]; 15 16 postInstall = '' 17 wrapProgram $out/bin/ephoto --prefix LD_LIBRARY_PATH : ${curl.out}/lib
+3 -17
pkgs/desktops/enlightenment/rage.nix
··· 1 - { stdenv, fetchurl, pkgconfig, efl, gst_all_1, curl, wrapGAppsHook }: 2 3 stdenv.mkDerivation rec { 4 name = "rage-${version}"; ··· 10 }; 11 12 nativeBuildInputs = [ 13 - pkgconfig 14 wrapGAppsHook 15 ]; 16 ··· 21 gst_all_1.gst-plugins-good 22 gst_all_1.gst-plugins-bad 23 gst_all_1.gst-libav 24 curl 25 ]; 26 - 27 - NIX_CFLAGS_COMPILE = [ 28 - "-I${efl}/include/ecore-con-1" 29 - "-I${efl}/include/ecore-evas-1" 30 - "-I${efl}/include/ecore-file-1" 31 - "-I${efl}/include/ecore-imf-1" 32 - "-I${efl}/include/ecore-input-1" 33 - "-I${efl}/include/eet-1" 34 - "-I${efl}/include/efreet-1" 35 - "-I${efl}/include/eldbus-1" 36 - "-I${efl}/include/emile-1" 37 - "-I${efl}/include/eo-1" 38 - "-I${efl}/include/ethumb-1" 39 - "-I${efl}/include/ethumb-client-1" 40 - ]; 41 42 postInstall = '' 43 wrapProgram $out/bin/rage --prefix LD_LIBRARY_PATH : ${curl.out}/lib
··· 1 + { stdenv, fetchurl, pkgconfig, efl, gst_all_1, pcre, curl, wrapGAppsHook }: 2 3 stdenv.mkDerivation rec { 4 name = "rage-${version}"; ··· 10 }; 11 12 nativeBuildInputs = [ 13 + (pkgconfig.override { vanilla = true; }) 14 wrapGAppsHook 15 ]; 16 ··· 21 gst_all_1.gst-plugins-good 22 gst_all_1.gst-plugins-bad 23 gst_all_1.gst-libav 24 + pcre 25 curl 26 ]; 27 28 postInstall = '' 29 wrapProgram $out/bin/rage --prefix LD_LIBRARY_PATH : ${curl.out}/lib
+3 -12
pkgs/desktops/enlightenment/terminology.nix
··· 1 - { stdenv, fetchurl, pkgconfig, efl, curl, makeWrapper }: 2 3 stdenv.mkDerivation rec { 4 name = "terminology-${version}"; ··· 9 sha256 = "13rl1k22yf8qrpzdm5nh6ij641fibadr2ww1r7rnz7mbhzj3d4gb"; 10 }; 11 12 - nativeBuildInputs = [ pkgconfig makeWrapper ]; 13 - 14 - buildInputs = [ efl curl ]; 15 16 - NIX_CFLAGS_COMPILE = [ 17 - "-I${efl}/include/ecore-con-1" 18 - "-I${efl}/include/eldbus-1" 19 - "-I${efl}/include/elocation-1" 20 - "-I${efl}/include/emile-1" 21 - "-I${efl}/include/eo-1" 22 - "-I${efl}/include/ethumb-1" 23 - ]; 24 25 postInstall = '' 26 for f in $out/bin/*; do
··· 1 + { stdenv, fetchurl, pkgconfig, efl, pcre, curl, makeWrapper }: 2 3 stdenv.mkDerivation rec { 4 name = "terminology-${version}"; ··· 9 sha256 = "13rl1k22yf8qrpzdm5nh6ij641fibadr2ww1r7rnz7mbhzj3d4gb"; 10 }; 11 12 + nativeBuildInputs = [ (pkgconfig.override { vanilla = true; }) makeWrapper ]; 13 14 + buildInputs = [ efl pcre curl ]; 15 16 postInstall = '' 17 for f in $out/bin/*; do