geoclue2: 2.4.8 → 2.4.10

This commit is contained in:
Jan Tojnar 2018-07-21 02:44:15 +02:00
parent 919a507cb2
commit a6dab86ada
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,48 +1,54 @@
{ fetchurl, stdenv, intltool, pkgconfig, glib, json-glib, libsoup, geoip { fetchurl, stdenv, intltool, pkgconfig, gtk-doc, docbook_xsl, docbook_xml_dtd_412, glib, json-glib, libsoup, libnotify, gdk_pixbuf
, dbus, dbus-glib, modemmanager, avahi, glib-networking, wrapGAppsHook, gobjectIntrospection , modemmanager, avahi, glib-networking, wrapGAppsHook, gobjectIntrospection
, withDemoAgent ? false
}: }:
with stdenv.lib; with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "geoclue-2.4.8"; name = "geoclue-${version}";
version = "2.4.10";
src = fetchurl { src = fetchurl {
url = "https://www.freedesktop.org/software/geoclue/releases/2.4/${name}.tar.xz"; url = "https://www.freedesktop.org/software/geoclue/releases/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
sha256 = "08yg1r7m0n9hwyvcy769qkmkf8lslqwv69cjfffwnc3zm5km25qj"; sha256 = "0h4n8jf7w457sglfdhghkyf8n4v4a5jrx8dgdy5zn35nbscx24l4";
}; };
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" "devdoc" ];
nativeBuildInputs = [ nativeBuildInputs = [
pkgconfig intltool wrapGAppsHook gobjectIntrospection pkgconfig intltool gtk-doc docbook_xsl docbook_xml_dtd_412 wrapGAppsHook gobjectIntrospection
]; ];
buildInputs = [ glib json-glib libsoup geoip buildInputs = [
dbus dbus-glib avahi glib json-glib libsoup avahi
] ++ optionals (!stdenv.isDarwin) [ modemmanager ]; ] ++ optionals withDemoAgent [
libnotify gdk_pixbuf
] ++ optionals (!stdenv.isDarwin) [ modemmanager ];
propagatedBuildInputs = [ dbus dbus-glib glib glib-networking ]; propagatedBuildInputs = [ glib glib-networking ];
preConfigure = '' configureFlags = [
substituteInPlace configure --replace "-Werror" "" "--with-systemdsystemunitdir=$(out)/etc/systemd/system"
''; "--enable-introspection"
"--enable-gtk-doc"
configureFlags = [ "--with-systemdsystemunitdir=$(out)/etc/systemd/system" "--enable-introspection" ] ++ "--enable-demo-agent=${if withDemoAgent then "yes" else "no"}"
optionals stdenv.isDarwin [ ] ++ optionals stdenv.isDarwin [
"--disable-silent-rules" "--disable-silent-rules"
"--disable-3g-source" "--disable-3g-source"
"--disable-cdma-source" "--disable-cdma-source"
"--disable-modem-gps-source" "--disable-modem-gps-source"
"--disable-nmea-source" ]; "--disable-nmea-source"
];
# https://gitlab.freedesktop.org/geoclue/geoclue/issues/73
postInstall = '' postInstall = ''
sed -i $dev/lib/pkgconfig/libgeoclue-2.0.pc -e "s|includedir=.*|includedir=$dev/include|" sed -i $dev/lib/pkgconfig/libgeoclue-2.0.pc -e "s|includedir=.*|includedir=$dev/include|"
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Geolocation framework and some data providers"; description = "Geolocation framework and some data providers";
homepage = https://freedesktop.org/wiki/Software/GeoClue/; homepage = https://gitlab.freedesktop.org/geoclue/geoclue/wikis/home;
maintainers = with maintainers; [ raskin garbas ]; maintainers = with maintainers; [ raskin garbas ];
platforms = with platforms; linux ++ darwin; platforms = with platforms; linux ++ darwin;
license = licenses.lgpl2; license = licenses.lgpl2;