Fix geoclue build on Darwin
This commit is contained in:
parent
e94437d1ed
commit
bde6e3da6f
@ -1,7 +1,9 @@
|
|||||||
{ fetchurl, stdenv, intltool, pkgconfig, glib, json_glib, libsoup, geoip
|
{ fetchurl, stdenv, intltool, libintlOrEmpty, pkgconfig, glib, json_glib, libsoup, geoip
|
||||||
, dbus, dbus_glib, modemmanager, avahi
|
, dbus, dbus_glib, modemmanager, avahi
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "geoclue-2.4.3";
|
name = "geoclue-2.4.3";
|
||||||
|
|
||||||
@ -10,23 +12,31 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0pk07k65dlw37nz8z5spksivsv5nh96xmbi336rf2yfxf2ldpadd";
|
sha256 = "0pk07k65dlw37nz8z5spksivsv5nh96xmbi336rf2yfxf2ldpadd";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs =
|
buildInputs = libintlOrEmpty ++
|
||||||
[ intltool pkgconfig glib json_glib libsoup geoip
|
[ intltool pkgconfig glib json_glib libsoup geoip
|
||||||
dbus dbus_glib modemmanager avahi
|
dbus dbus_glib avahi
|
||||||
];
|
] ++ optionals (!stdenv.isDarwin) [ modemmanager ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
substituteInPlace configure --replace "-Werror" ""
|
substituteInPlace configure --replace "-Werror" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = [ "--with-systemdsystemunitdir=$(out)/etc/systemd/system" ];
|
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";
|
||||||
|
|
||||||
propagatedBuildInputs = [ dbus dbus_glib glib ];
|
propagatedBuildInputs = [ dbus dbus_glib glib ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Geolocation framework and some data providers";
|
description = "Geolocation framework and some data providers";
|
||||||
maintainers = with maintainers; [ raskin garbas ];
|
maintainers = with maintainers; [ raskin garbas ];
|
||||||
platforms = platforms.linux;
|
platforms = with platforms; linux ++ darwin;
|
||||||
license = licenses.lgpl2;
|
license = licenses.lgpl2;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user