24 lomiri-url-dispatcher,
35 stdenv.mkDerivation (finalAttrs: {
36 pname = "lomiri-indicator-network";
39 src = fetchFromGitLab {
41 repo = "development/core/lomiri-indicator-network";
42 rev = finalAttrs.version;
43 hash = "sha256-9AQCWCZFbt4XcmKsjoTXJlWOm02/kBhpPxbHRtftNFM=";
53 # Move to new lomiri-indicators target
54 # Remove when version > 1.0.2
56 name = "0001-lomiri-indicator-network-lomiri-indicators-target.patch";
57 url = "https://gitlab.com/ubports/development/core/lomiri-indicator-network/-/commit/b1e1f7da4b298964eba3caea37b1dace7a6182e9.patch";
58 hash = "sha256-pZKpEn2OJtB1pG/U+6IjtPGiOchRDhdbBHEZbTW7Lx0=";
63 # Override original prefixes
64 substituteInPlace data/CMakeLists.txt \
65 --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})' \
66 --replace-fail 'pkg_get_variable(SYSTEMD_USER_DIR systemd systemduserunitdir)' 'pkg_get_variable(SYSTEMD_USER_DIR systemd systemduserunitdir DEFINE_VARIABLES prefix=''${CMAKE_INSTALL_PREFIX})'
95 nativeCheckInputs = [ (python3.withPackages (ps: with ps; [ python-dbusmock ])) ];
104 dontWrapQtApps = true;
107 (lib.cmakeBool "GSETTINGS_LOCALINSTALL" true)
108 (lib.cmakeBool "GSETTINGS_COMPILE" true)
109 (lib.cmakeBool "ENABLE_TESTS" finalAttrs.finalPackage.doCheck)
110 (lib.cmakeBool "ENABLE_UBUNTU_COMPAT" true) # just in case something needs it
111 (lib.cmakeBool "BUILD_DOC" true)
114 doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
117 substituteInPlace $out/etc/dbus-1/services/com.lomiri.connectivity1.service \
118 --replace '/bin/false' '${lib.getExe' coreutils "false"}'
122 ayatana-indicators = {
123 lomiri-indicator-network = [ "lomiri" ];
126 pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
127 vm = nixosTests.ayatana-indicators;
129 updateScript = gitUpdater { };
133 description = "Ayatana indiator exporting the network settings menu through D-Bus";
134 homepage = "https://gitlab.com/ubports/development/core/lomiri-indicator-network";
135 changelog = "https://gitlab.com/ubports/development/core/lomiri-indicator-network/-/blob/${finalAttrs.version}/ChangeLog";
136 license = lib.licenses.gpl3Only;
137 maintainers = lib.teams.lomiri.members;
138 platforms = lib.platforms.linux;
139 pkgConfigModules = [ "lomiri-connectivity-qt1" ];