geoclue2: clean up
This commit is contained in:
parent
e8893cc489
commit
c096439846
|
@ -1,14 +1,34 @@
|
||||||
{ lib, stdenv, fetchFromGitLab, intltool, meson, ninja, pkg-config, gtk-doc, docbook_xsl, docbook_xml_dtd_412, glib, json-glib, libsoup, libnotify, gdk-pixbuf
|
{ lib
|
||||||
, modemmanager, avahi, glib-networking, python3, wrapGAppsHook, gobject-introspection, vala
|
, stdenv
|
||||||
|
, fetchFromGitLab
|
||||||
|
, intltool
|
||||||
|
, meson
|
||||||
|
, ninja
|
||||||
|
, pkg-config
|
||||||
|
, gtk-doc
|
||||||
|
, docbook-xsl-nons
|
||||||
|
, docbook_xml_dtd_412
|
||||||
|
, glib
|
||||||
|
, json-glib
|
||||||
|
, libsoup
|
||||||
|
, libnotify
|
||||||
|
, gdk-pixbuf
|
||||||
|
, modemmanager
|
||||||
|
, avahi
|
||||||
|
, glib-networking
|
||||||
|
, python3
|
||||||
|
, wrapGAppsHook
|
||||||
|
, gobject-introspection
|
||||||
|
, vala
|
||||||
, withDemoAgent ? false
|
, withDemoAgent ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "geoclue";
|
pname = "geoclue";
|
||||||
version = "2.5.6";
|
version = "2.5.6";
|
||||||
|
|
||||||
|
outputs = [ "out" "dev" "devdoc" ];
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
domain = "gitlab.freedesktop.org";
|
domain = "gitlab.freedesktop.org";
|
||||||
owner = pname;
|
owner = pname;
|
||||||
|
@ -21,30 +41,45 @@ stdenv.mkDerivation rec {
|
||||||
./add-option-for-installation-sysconfdir.patch
|
./add-option-for-installation-sysconfdir.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
outputs = [ "out" "dev" "devdoc" ];
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config intltool meson ninja wrapGAppsHook python3 vala gobject-introspection
|
pkg-config
|
||||||
|
intltool
|
||||||
|
meson
|
||||||
|
ninja
|
||||||
|
wrapGAppsHook
|
||||||
|
python3
|
||||||
|
vala
|
||||||
|
gobject-introspection
|
||||||
# devdoc
|
# devdoc
|
||||||
gtk-doc docbook_xsl docbook_xml_dtd_412
|
gtk-doc
|
||||||
|
docbook-xsl-nons
|
||||||
|
docbook_xml_dtd_412
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
glib json-glib libsoup avahi
|
glib
|
||||||
] ++ optionals withDemoAgent [
|
json-glib
|
||||||
|
libsoup
|
||||||
|
avahi
|
||||||
|
] ++ lib.optionals withDemoAgent [
|
||||||
libnotify gdk-pixbuf
|
libnotify gdk-pixbuf
|
||||||
] ++ optionals (!stdenv.isDarwin) [ modemmanager ];
|
] ++ lib.optionals (!stdenv.isDarwin) [
|
||||||
|
modemmanager
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ glib glib-networking ];
|
propagatedBuildInputs = [
|
||||||
|
glib
|
||||||
|
glib-networking
|
||||||
|
];
|
||||||
|
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
"-Dsystemd-system-unit-dir=${placeholder "out"}/etc/systemd/system"
|
"-Dsystemd-system-unit-dir=${placeholder "out"}/etc/systemd/system"
|
||||||
"-Ddemo-agent=${boolToString withDemoAgent}"
|
"-Ddemo-agent=${lib.boolToString withDemoAgent}"
|
||||||
"--sysconfdir=/etc"
|
"--sysconfdir=/etc"
|
||||||
"-Dsysconfdir_install=${placeholder "out"}/etc"
|
"-Dsysconfdir_install=${placeholder "out"}/etc"
|
||||||
"-Ddbus-srv-user=geoclue"
|
"-Ddbus-srv-user=geoclue"
|
||||||
"-Ddbus-sys-dir=${placeholder "out"}/share/dbus-1/system.d"
|
"-Ddbus-sys-dir=${placeholder "out"}/share/dbus-1/system.d"
|
||||||
] ++ optionals stdenv.isDarwin [
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
"-D3g-source=false"
|
"-D3g-source=false"
|
||||||
"-Dcdma-source=false"
|
"-Dcdma-source=false"
|
||||||
"-Dmodem-gps-source=false"
|
"-Dmodem-gps-source=false"
|
||||||
|
|
Loading…
Reference in New Issue