e5b678698b
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/geoclue/versions. These checks were done: - built on NixOS - Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.) - found 2.4.8 with grep in /nix/store/94izsg39mjz2f8z4wp0z4i2kxpwj8gv4-geoclue-2.4.8 - directory tree listing: https://gist.github.com/387fefa5c6ac00efbebe272c600f309f
50 lines
1.6 KiB
Nix
50 lines
1.6 KiB
Nix
{ fetchurl, stdenv, intltool, pkgconfig, glib, json-glib, libsoup, geoip
|
|
, dbus, dbus-glib, modemmanager, avahi, glib-networking, wrapGAppsHook, gobjectIntrospection
|
|
}:
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "geoclue-2.4.8";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.freedesktop.org/software/geoclue/releases/2.4/${name}.tar.xz";
|
|
sha256 = "08yg1r7m0n9hwyvcy769qkmkf8lslqwv69cjfffwnc3zm5km25qj";
|
|
};
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
nativeBuildInputs = [
|
|
pkgconfig intltool wrapGAppsHook gobjectIntrospection
|
|
];
|
|
|
|
buildInputs = [ glib json-glib libsoup geoip
|
|
dbus dbus-glib avahi
|
|
] ++ optionals (!stdenv.isDarwin) [ modemmanager ];
|
|
|
|
propagatedBuildInputs = [ dbus dbus-glib glib glib-networking ];
|
|
|
|
preConfigure = ''
|
|
substituteInPlace configure --replace "-Werror" ""
|
|
'';
|
|
|
|
configureFlags = [ "--with-systemdsystemunitdir=$(out)/etc/systemd/system" "--enable-introspection" ] ++
|
|
optionals stdenv.isDarwin [
|
|
"--disable-silent-rules"
|
|
"--disable-3g-source"
|
|
"--disable-cdma-source"
|
|
"--disable-modem-gps-source"
|
|
"--disable-nmea-source" ];
|
|
|
|
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";
|
|
homepage = https://freedesktop.org/wiki/Software/GeoClue/;
|
|
maintainers = with maintainers; [ raskin garbas ];
|
|
platforms = with platforms; linux ++ darwin;
|
|
license = licenses.lgpl2;
|
|
};
|
|
}
|