summary refs log tree commit diff
path: root/pkgs/development/libraries/geoclue
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2017-10-28 19:17:42 +0300
committerTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2017-10-29 01:28:04 +0300
commite5144470632d704778c56a2acc3394ef548d09e6 (patch)
tree8a244291e39cb108f420f26190d935d24b9c54d6 /pkgs/development/libraries/geoclue
parent8ac360ed953c2557bd9b7676a1a932d0c878f1dc (diff)
downloadnixpkgs-e5144470632d704778c56a2acc3394ef548d09e6.tar
nixpkgs-e5144470632d704778c56a2acc3394ef548d09e6.tar.gz
nixpkgs-e5144470632d704778c56a2acc3394ef548d09e6.tar.bz2
nixpkgs-e5144470632d704778c56a2acc3394ef548d09e6.tar.lz
nixpkgs-e5144470632d704778c56a2acc3394ef548d09e6.tar.xz
nixpkgs-e5144470632d704778c56a2acc3394ef548d09e6.tar.zst
nixpkgs-e5144470632d704778c56a2acc3394ef548d09e6.zip
geoclue2: Split into multiple outputs
Diffstat (limited to 'pkgs/development/libraries/geoclue')
-rw-r--r--pkgs/development/libraries/geoclue/2.0.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/development/libraries/geoclue/2.0.nix b/pkgs/development/libraries/geoclue/2.0.nix
index 64d61d64bb6..483ee39c2da 100644
--- a/pkgs/development/libraries/geoclue/2.0.nix
+++ b/pkgs/development/libraries/geoclue/2.0.nix
@@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
     sha256 = "19hfmr8fa1js8ynazdyjxlyrqpjn6m1719ay70ilga4rayxrcyyi";
   };
 
+  outputs = [ "out" "dev" ];
+
   nativeBuildInputs = [
     pkgconfig intltool wrapGAppsHook
   ];
@@ -21,6 +23,8 @@ stdenv.mkDerivation rec {
      dbus dbus_glib avahi
    ] ++ optionals (!stdenv.isDarwin) [ modemmanager ];
 
+  propagatedBuildInputs = [ dbus dbus_glib glib glib_networking ];
+
   preConfigure = ''
      substituteInPlace configure --replace "-Werror" ""
   '';
@@ -35,7 +39,9 @@ stdenv.mkDerivation rec {
 
   NIX_CFLAGS_COMPILE = optionalString stdenv.isDarwin " -lintl";
 
-  propagatedBuildInputs = [ dbus dbus_glib glib glib_networking ];
+  postInstall = ''
+    sed -i $dev/lib/pkgconfig/libgeoclue-2.0.pc -e "s|includedir=.*|includedir=$dev/include|"
+  '';
 
   meta = with stdenv.lib; {
     description = "Geolocation framework and some data providers";