23 , gobject-introspection
25 , withDemoAgent ? false
28 stdenv.mkDerivation rec {
32 outputs = [ "out" "dev" "devdoc" ];
34 src = fetchFromGitLab {
35 domain = "gitlab.freedesktop.org";
39 hash = "sha256-vzarUg4lBEXYkH+n9SY8SYr0gHUX94PSTDmKd957gyc=";
43 ./add-option-for-installation-sysconfdir.patch
59 ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
68 ] ++ lib.optionals withDemoAgent [
70 ] ++ lib.optionals (!stdenv.isDarwin) [
74 propagatedBuildInputs = [
80 "-Dsystemd-system-unit-dir=${placeholder "out"}/etc/systemd/system"
81 "-Ddemo-agent=${lib.boolToString withDemoAgent}"
83 "-Dsysconfdir_install=${placeholder "out"}/etc"
84 "-Dmozilla-api-key=5c28d1f4-9511-47ff-b11a-2bef80fc177c"
85 "-Ddbus-srv-user=geoclue"
86 "-Ddbus-sys-dir=${placeholder "out"}/share/dbus-1/system.d"
87 ] ++ lib.optionals stdenv.isDarwin [
90 "-Dmodem-gps-source=false"
95 chmod +x demo/install-file.py
96 patchShebangs demo/install-file.py
100 broken = stdenv.isDarwin && withDemoAgent;
101 description = "Geolocation framework and some data providers";
102 homepage = "https://gitlab.freedesktop.org/geoclue/geoclue/wikis/home";
103 maintainers = with maintainers; [ raskin mimame ];
104 platforms = with platforms; linux ++ darwin;
105 license = licenses.lgpl2Plus;