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-TbuO9wpyjtvyvqaCryaTOunR0hVVlJuqENWQQpcMcz4=";
43 ./add-option-for-installation-sysconfdir.patch
59 ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
69 ] ++ lib.optionals withDemoAgent [
71 ] ++ lib.optionals (!stdenv.isDarwin) [
75 propagatedBuildInputs = [
81 "-Dsystemd-system-unit-dir=${placeholder "out"}/etc/systemd/system"
82 "-Ddemo-agent=${lib.boolToString withDemoAgent}"
84 "-Dsysconfdir_install=${placeholder "out"}/etc"
85 "-Dmozilla-api-key=5c28d1f4-9511-47ff-b11a-2bef80fc177c"
86 "-Ddbus-srv-user=geoclue"
87 "-Ddbus-sys-dir=${placeholder "out"}/share/dbus-1/system.d"
88 ] ++ lib.optionals stdenv.isDarwin [
91 "-Dmodem-gps-source=false"
96 chmod +x demo/install-file.py
97 patchShebangs demo/install-file.py
101 broken = stdenv.isDarwin && withDemoAgent;
102 description = "Geolocation framework and some data providers";
103 homepage = "https://gitlab.freedesktop.org/geoclue/geoclue/wikis/home";
104 maintainers = with maintainers; [ raskin ];
105 platforms = with platforms; linux ++ darwin;
106 license = licenses.lgpl2Plus;