12 , gsettings-desktop-schemas
30 stdenv.mkDerivation (finalAttrs: {
31 pname = "ayatana-indicator-display";
34 src = fetchFromGitHub {
35 owner = "AyatanaIndicators";
36 repo = "ayatana-indicator-display";
37 rev = "refs/tags/${finalAttrs.version}";
38 hash = "sha256-ZEmJJtVK1dHIrY0C6pqVu1N5PmQtYqX0K5v5LvzNfFA=";
42 # Replace systemd prefix in pkg-config query, use GNUInstallDirs location for /etc
43 substituteInPlace data/CMakeLists.txt \
44 --replace-fail 'pkg_get_variable(SYSTEMD_USER_DIR systemd systemduserunitdir)' 'pkg_get_variable(SYSTEMD_USER_DIR systemd systemduserunitdir DEFINE_VARIABLES prefix=''${CMAKE_INSTALL_PREFIX})' \
45 --replace-fail 'DESTINATION "/etc' 'DESTINATION "''${CMAKE_INSTALL_FULL_SYSCONFDIR}'
48 substituteInPlace src/service.cpp \
49 --replace-fail 'sCommand = g_strdup_printf ("xsct' 'sCommand = g_strdup_printf ("${lib.getExe xsct}'
56 glib # for schema discovery
62 # TODO Can we get around requiring every desktop's schemas just to avoid segfaulting on some systems?
66 gsettings-desktop-schemas # gnome schemas
74 lomiri-schemas # lomiri schema
76 mate.marco # marco schema
77 mate.mate-settings-daemon # mate mouse schema
83 (python3.withPackages (ps: with ps; [
95 dontWrapQtApps = true;
98 (lib.cmakeBool "ENABLE_TESTS" finalAttrs.finalPackage.doCheck)
99 (lib.cmakeBool "ENABLE_COLOR_TEMP" true)
100 (lib.cmakeBool "GSETTINGS_LOCALINSTALL" true)
101 (lib.cmakeBool "GSETTINGS_COMPILE" true)
104 doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
107 ayatana-indicators = [ "ayatana-indicator-display" ];
108 tests.vm = nixosTests.ayatana-indicators;
109 updateScript = gitUpdater { };
113 description = "Ayatana Indicator for Display configuration";
115 This Ayatana Indicator is designed to be placed on the right side of a
116 panel and give the user easy control for changing their display settings.
118 homepage = "https://github.com/AyatanaIndicators/ayatana-indicator-display";
119 changelog = "https://github.com/AyatanaIndicators/ayatana-indicator-display/blob/${finalAttrs.version}/ChangeLog";
120 license = licenses.gpl3Only;
121 maintainers = with maintainers; [ OPNA2608 ];
122 platforms = platforms.linux;