1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00
nixpkgs/pkgs/development/libraries/geoclue/2.0.nix

47 lines
1.4 KiB
Nix
Raw Normal View History

2017-04-01 01:10:32 +01:00
{ fetchurl, stdenv, intltool, libintlOrEmpty, pkgconfig, glib, json_glib, libsoup, geoip
2015-12-12 13:26:46 +00:00
, dbus, dbus_glib, modemmanager, avahi
}:
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";
};
nativeBuildInputs = [
pkgconfig
];
2017-04-01 01:10:32 +01:00
buildInputs = libintlOrEmpty ++
[ intltool glib json_glib libsoup geoip
2017-04-01 01:10:32 +01:00
dbus dbus_glib avahi
] ++ optionals (!stdenv.isDarwin) [ modemmanager ];
preConfigure = ''
substituteInPlace configure --replace "-Werror" ""
'';
2017-04-01 01:10:32 +01:00
configureFlags = [ "--with-systemdsystemunitdir=$(out)/etc/systemd/system" ] ++
optionals stdenv.isDarwin [
"--disable-silent-rules"
"--disable-3g-source"
"--disable-cdma-source"
"--disable-modem-gps-source"
"--disable-nmea-source" ];
NIX_CFLAGS_COMPILE = optionalString stdenv.isDarwin " -lintl";
2015-04-10 16:02:57 +01:00
propagatedBuildInputs = [ dbus dbus_glib glib ];
2016-03-09 03:17:17 +00:00
meta = with stdenv.lib; {
description = "Geolocation framework and some data providers";
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;
};
}