nixpkgs/pkgs/development/libraries/geoclue/2.0.nix

51 lines
1.6 KiB
Nix
Raw Normal View History

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