2018-03-14 20:15:06 +01:00
|
|
|
{ fetchurl, stdenv, intltool, pkgconfig, glib, json-glib, libsoup, geoip
|
2018-03-15 20:08:15 +01:00
|
|
|
, dbus, dbus-glib, modemmanager, avahi, glib-networking, wrapGAppsHook, gobjectIntrospection
|
2013-10-29 16:23:24 +01:00
|
|
|
}:
|
|
|
|
|
2017-04-01 02:10:32 +02:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2013-10-29 16:23:24 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-04-17 11:31:12 +02:00
|
|
|
name = "geoclue-2.4.8";
|
2013-10-29 16:23:24 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://www.freedesktop.org/software/geoclue/releases/2.4/${name}.tar.xz";
|
2018-04-17 11:31:12 +02:00
|
|
|
sha256 = "08yg1r7m0n9hwyvcy769qkmkf8lslqwv69cjfffwnc3zm5km25qj";
|
2013-10-29 16:23:24 +01:00
|
|
|
};
|
|
|
|
|
2017-10-28 18:17:42 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2017-09-22 05:23:52 +02:00
|
|
|
nativeBuildInputs = [
|
2018-03-15 20:08:15 +01:00
|
|
|
pkgconfig intltool wrapGAppsHook gobjectIntrospection
|
2017-09-22 05:23:52 +02:00
|
|
|
];
|
|
|
|
|
2018-03-14 20:15:06 +01:00
|
|
|
buildInputs = [ glib json-glib libsoup geoip
|
2018-02-25 03:23:58 +01:00
|
|
|
dbus dbus-glib avahi
|
2017-04-01 02:10:32 +02:00
|
|
|
] ++ optionals (!stdenv.isDarwin) [ modemmanager ];
|
2013-10-29 16:23:24 +01:00
|
|
|
|
2018-02-25 03:23:58 +01:00
|
|
|
propagatedBuildInputs = [ dbus dbus-glib glib glib-networking ];
|
2017-10-28 18:17:42 +02:00
|
|
|
|
2013-10-29 16:23:24 +01:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace configure --replace "-Werror" ""
|
|
|
|
'';
|
|
|
|
|
2018-03-15 20:08:15 +01:00
|
|
|
configureFlags = [ "--with-systemdsystemunitdir=$(out)/etc/systemd/system" "--enable-introspection" ] ++
|
2017-04-01 02:10:32 +02:00
|
|
|
optionals stdenv.isDarwin [
|
|
|
|
"--disable-silent-rules"
|
|
|
|
"--disable-3g-source"
|
|
|
|
"--disable-cdma-source"
|
|
|
|
"--disable-modem-gps-source"
|
|
|
|
"--disable-nmea-source" ];
|
|
|
|
|
2017-10-28 18:17:42 +02:00
|
|
|
postInstall = ''
|
|
|
|
sed -i $dev/lib/pkgconfig/libgeoclue-2.0.pc -e "s|includedir=.*|includedir=$dev/include|"
|
|
|
|
'';
|
2013-10-29 16:23:24 +01:00
|
|
|
|
2016-03-09 04:17:17 +01:00
|
|
|
meta = with stdenv.lib; {
|
2013-10-29 16:23:24 +01:00
|
|
|
description = "Geolocation framework and some data providers";
|
2018-03-15 20:08:15 +01:00
|
|
|
homepage = https://freedesktop.org/wiki/Software/GeoClue/;
|
2016-03-09 04:17:17 +01:00
|
|
|
maintainers = with maintainers; [ raskin garbas ];
|
2017-04-01 02:10:32 +02:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2016-03-09 04:17:17 +01:00
|
|
|
license = licenses.lgpl2;
|
2013-10-29 16:23:24 +01:00
|
|
|
};
|
|
|
|
}
|