From 2af847864f303d38001aebc0a9edaf7f6bf9938e Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sat, 18 May 2024 17:35:13 +0800 Subject: [PATCH] pantheon.wingpanel-quick-settings: init at 1.0.0 --- pkgs/desktops/pantheon/default.nix | 3 + .../quick-settings/default.nix | 65 +++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 pkgs/desktops/pantheon/desktop/wingpanel-indicators/quick-settings/default.nix diff --git a/pkgs/desktops/pantheon/default.nix b/pkgs/desktops/pantheon/default.nix index e0f08e6e2031..10c8aa889c90 100644 --- a/pkgs/desktops/pantheon/default.nix +++ b/pkgs/desktops/pantheon/default.nix @@ -36,6 +36,7 @@ lib.makeScope pkgs.newScope (self: with self; { wingpanel-indicator-power wingpanel-indicator-session wingpanel-indicator-sound + wingpanel-quick-settings ]; maintainers = lib.teams.pantheon.members; @@ -163,6 +164,8 @@ lib.makeScope pkgs.newScope (self: with self; { wingpanel-indicator-sound = callPackage ./desktop/wingpanel-indicators/sound { }; + wingpanel-quick-settings = callPackage ./desktop/wingpanel-indicators/quick-settings { }; + #### SWITCHBOARD switchboard = callPackage ./apps/switchboard { }; diff --git a/pkgs/desktops/pantheon/desktop/wingpanel-indicators/quick-settings/default.nix b/pkgs/desktops/pantheon/desktop/wingpanel-indicators/quick-settings/default.nix new file mode 100644 index 000000000000..e51621e52958 --- /dev/null +++ b/pkgs/desktops/pantheon/desktop/wingpanel-indicators/quick-settings/default.nix @@ -0,0 +1,65 @@ +{ + stdenv, + lib, + fetchFromGitHub, + nix-update-script, + glib, + meson, + ninja, + pkg-config, + vala, + elementary-settings-daemon, + granite, + gtk3, + libgee, + libhandy, + libportal, + packagekit, + wayland, + wingpanel, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "wingpanel-quick-settings"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "elementary"; + repo = "quick-settings"; + rev = finalAttrs.version; + hash = "sha256-k8K6zGTLYGSsi5NtohbaGg4oVVovktR7BInN8BUE5bQ="; + }; + + nativeBuildInputs = [ + glib # glib-compile-resources + meson + ninja + pkg-config + vala + ]; + + buildInputs = [ + elementary-settings-daemon # for prefers-color-scheme + glib + granite + gtk3 + libgee + libhandy + libportal + packagekit + wayland + wingpanel + ]; + + passthru = { + updateScript = nix-update-script { }; + }; + + meta = { + description = "Quick settings menu for Wingpanel"; + homepage = "https://github.com/elementary/quick-settings"; + license = lib.licenses.gpl3Plus; + platforms = lib.platforms.linux; + maintainers = lib.teams.pantheon.members; + }; +})