24 lomiri-url-dispatcher,
34 stdenv.mkDerivation (finalAttrs: {
35 pname = "lomiri-indicator-network";
38 src = fetchFromGitLab {
40 repo = "development/core/lomiri-indicator-network";
41 rev = finalAttrs.version;
42 hash = "sha256-9AQCWCZFbt4XcmKsjoTXJlWOm02/kBhpPxbHRtftNFM=";
52 # Move to new lomiri-indicators target
53 # Remove when version > 1.0.2
55 name = "0001-lomiri-indicator-network-lomiri-indicators-target.patch";
56 url = "https://gitlab.com/ubports/development/core/lomiri-indicator-network/-/commit/b1e1f7da4b298964eba3caea37b1dace7a6182e9.patch";
57 hash = "sha256-pZKpEn2OJtB1pG/U+6IjtPGiOchRDhdbBHEZbTW7Lx0=";
62 # Override original prefixes
63 substituteInPlace data/CMakeLists.txt \
64 --replace-fail 'pkg_get_variable(DBUS_SESSION_BUS_SERVICES_DIR dbus-1 session_bus_services_dir)' 'pkg_get_variable(DBUS_SESSION_BUS_SERVICES_DIR dbus-1 session_bus_services_dir DEFINE_VARIABLES datadir=''${CMAKE_INSTALL_FULL_SYSCONFDIR})' \
65 --replace-fail 'pkg_get_variable(SYSTEMD_USER_DIR systemd systemduserunitdir)' 'pkg_get_variable(SYSTEMD_USER_DIR systemd systemduserunitdir DEFINE_VARIABLES prefix=''${CMAKE_INSTALL_PREFIX})'
93 nativeCheckInputs = [ (python3.withPackages (ps: with ps; [ python-dbusmock ])) ];
102 dontWrapQtApps = true;
105 (lib.cmakeBool "GSETTINGS_LOCALINSTALL" true)
106 (lib.cmakeBool "GSETTINGS_COMPILE" true)
107 (lib.cmakeBool "ENABLE_TESTS" finalAttrs.finalPackage.doCheck)
108 (lib.cmakeBool "ENABLE_UBUNTU_COMPAT" true) # just in case something needs it
109 (lib.cmakeBool "BUILD_DOC" true) # lacks QML docs, needs qdoc: https://github.com/NixOS/nixpkgs/pull/245379
112 doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
115 substituteInPlace $out/etc/dbus-1/services/com.lomiri.connectivity1.service \
116 --replace '/bin/false' '${lib.getExe' coreutils "false"}'
120 ayatana-indicators = {
121 lomiri-indicator-network = [ "lomiri" ];
124 pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
125 vm = nixosTests.ayatana-indicators;
127 updateScript = gitUpdater { };
131 description = "Ayatana indiator exporting the network settings menu through D-Bus";
132 homepage = "https://gitlab.com/ubports/development/core/lomiri-indicator-network";
133 changelog = "https://gitlab.com/ubports/development/core/lomiri-indicator-network/-/blob/${finalAttrs.version}/ChangeLog";
134 license = lib.licenses.gpl3Only;
135 maintainers = lib.teams.lomiri.members;
136 platforms = lib.platforms.linux;
137 pkgConfigModules = [ "lomiri-connectivity-qt1" ];