3
0
Fork 0
forked from mirrors/nixpkgs

kde: add glib include paths to NIX_CFLAGS_COMPILE

This commit is contained in:
Domen Kožar 2015-10-25 17:15:35 +01:00
parent b56f67dcaf
commit 350ffdcc84
3 changed files with 6 additions and 4 deletions

View file

@ -281,7 +281,7 @@ let
buildInputs = [ scope.canberra ];
nativeBuildInputs = [ scope.pkgconfig ];
# cmake does not detect path to `ilmbase`
NIX_CFLAGS_COMPILE = "-I${scope.ilmbase}/include/OpenEXR";
NIX_CFLAGS_COMPILE = "-I${scope.ilmbase}/include/OpenEXR -I${pkgs.glib}/include/glib-2.0 -I${pkgs.glib}/lib/glib-2.0/include";
# some components of this package have been replaced in other packages
meta = { priority = 10; };
};

View file

@ -8,7 +8,7 @@ kde {
buildInputs = [
kdelibs attica xz bzip2 libssh libjpeg exiv2 ntrack
qca2 samba libcanberra libpulseaudio gpgme glib
qca2 samba libcanberra libpulseaudio gpgme
networkmanager kactivities kdepimlibs openexr
#todo: add openslp
#todo: gpgme can't be found because cmake module is provided by kdepimlibs which are found too late
@ -16,7 +16,7 @@ kde {
nativeBuildInputs = [ pkgconfig ];
NIX_CFLAGS_COMPILE = "-I${ilmbase}/include/OpenEXR";
NIX_CFLAGS_COMPILE = "-I${ilmbase}/include/OpenEXR -I${glib}/include/glib-2.0 -I${glib}/lib/glib-2.0/include";
passthru.propagatedUserEnvPackages = [ virtuoso ];

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, cmake, gettext, kdelibs, networkmanager, libnm-qt }:
{ stdenv, fetchurl, pkgconfig, cmake, gettext, kdelibs, networkmanager, libnm-qt, glib }:
let
pname = "plasma-nm";
@ -13,6 +13,8 @@ stdenv.mkDerivation {
sha256 = "0xj14isvjq8ll70b6q66n8adm8ff4j9ng195ndk2gmavjf6bb751";
};
NIX_CFLAGS_COMPILE = "-I${glib}/include/glib-2.0 -I${glib}/lib/glib-2.0/include";
buildInputs = [
cmake
pkgconfig