23 stdenv.mkDerivation (finalAttrs: {
24 pname = "ayatana-indicator-power";
27 src = fetchFromGitHub {
28 owner = "AyatanaIndicators";
29 repo = "ayatana-indicator-power";
30 rev = "refs/tags/${finalAttrs.version}";
31 hash = "sha256-M7BzyQRPKyXMEY0FTMBXsCemC3+w8upjTHApWkRf71I=";
35 # Replace systemd prefix in pkg-config query, use GNUInstallDirs location for /etc
36 substituteInPlace data/CMakeLists.txt \
37 --replace-fail 'pkg_get_variable(SYSTEMD_USER_DIR systemd systemduserunitdir)' 'pkg_get_variable(SYSTEMD_USER_DIR systemd systemduserunitdir DEFINE_VARIABLES prefix=''${CMAKE_INSTALL_PREFIX})' \
38 --replace-fail 'XDG_AUTOSTART_DIR "/etc' 'XDG_AUTOSTART_DIR "''${CMAKE_INSTALL_FULL_SYSCONFDIR}'
40 # Path needed for build-time codegen
41 substituteInPlace src/CMakeLists.txt \
42 --replace-fail '/usr/share/accountsservice/interfaces/com.lomiri.touch.AccountsService.Sound.xml' '${lomiri.lomiri-schemas}/share/accountsservice/interfaces/com.lomiri.touch.AccountsService.Sound.xml'
71 (python3.withPackages (ps: with ps; [ python-dbusmock ]))
80 (lib.cmakeBool "ENABLE_TESTS" finalAttrs.finalPackage.doCheck)
81 (lib.cmakeBool "ENABLE_LOMIRI_FEATURES" true)
82 (lib.cmakeBool "ENABLE_DEVICEINFO" true)
83 (lib.cmakeBool "ENABLE_RDA" true)
84 (lib.cmakeBool "GSETTINGS_LOCALINSTALL" true)
85 (lib.cmakeBool "GSETTINGS_COMPILE" true)
88 doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
91 ayatana-indicators = {
92 ayatana-indicator-power = [
97 tests.vm = nixosTests.ayatana-indicators;
98 updateScript = gitUpdater { };
102 description = "Ayatana Indicator showing power state";
104 This Ayatana Indicator displays current power management information and
105 gives the user a way to access power management preferences.
107 homepage = "https://github.com/AyatanaIndicators/ayatana-indicator-power";
108 changelog = "https://github.com/AyatanaIndicators/ayatana-indicator-power/blob/${finalAttrs.version}/ChangeLog";
109 license = lib.licenses.gpl3Only;
110 maintainers = with lib.maintainers; [ OPNA2608 ];
111 platforms = lib.platforms.linux;