From de0703d599cb4be000f884e255a638b164c384e3 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Thu, 15 Aug 2024 21:09:12 +0200 Subject: [PATCH] ayatana-indicator-sound: nixfmt, modernise --- .../ay/ayatana-indicator-sound/package.nix | 99 ++++++++++--------- 1 file changed, 50 insertions(+), 49 deletions(-) diff --git a/pkgs/by-name/ay/ayatana-indicator-sound/package.nix b/pkgs/by-name/ay/ayatana-indicator-sound/package.nix index 616f98a435a0..cc4c7980d240 100644 --- a/pkgs/by-name/ay/ayatana-indicator-sound/package.nix +++ b/pkgs/by-name/ay/ayatana-indicator-sound/package.nix @@ -1,30 +1,31 @@ -{ stdenv -, lib -, gitUpdater -, fetchFromGitHub -, nixosTests -, accountsservice -, cmake -, dbus -, dbus-test-runner -, glib -, gobject-introspection -, gtest -, intltool -, libayatana-common -, libgee -, libnotify -, libpulseaudio -, libqtdbusmock -, libqtdbustest -, libsForQt5 -, libxml2 -, lomiri -, pkg-config -, python3 -, systemd -, vala -, wrapGAppsHook3 +{ + stdenv, + lib, + gitUpdater, + fetchFromGitHub, + nixosTests, + accountsservice, + cmake, + dbus, + dbus-test-runner, + glib, + gobject-introspection, + gtest, + intltool, + libayatana-common, + libgee, + libnotify, + libpulseaudio, + libqtdbusmock, + libqtdbustest, + libsForQt5, + libxml2, + lomiri, + pkg-config, + python3, + systemd, + vala, + wrapGAppsHook3, }: stdenv.mkDerivation (finalAttrs: { @@ -61,27 +62,27 @@ stdenv.mkDerivation (finalAttrs: { wrapGAppsHook3 ]; - buildInputs = [ - accountsservice - glib - gobject-introspection - libayatana-common - libgee - libnotify - libpulseaudio - libxml2 - systemd - ] ++ (with lomiri; [ - cmake-extras - lomiri-api - lomiri-schemas - ]); + buildInputs = + [ + accountsservice + glib + gobject-introspection + libayatana-common + libgee + libnotify + libpulseaudio + libxml2 + systemd + ] + ++ (with lomiri; [ + cmake-extras + lomiri-api + lomiri-schemas + ]); nativeCheckInputs = [ dbus - (python3.withPackages (ps: with ps; [ - python-dbusmock - ])) + (python3.withPackages (ps: with ps; [ python-dbusmock ])) ]; checkInputs = [ @@ -110,7 +111,7 @@ stdenv.mkDerivation (finalAttrs: { updateScript = gitUpdater { }; }; - meta = with lib; { + meta = { description = "Ayatana Indicator for managing system sound"; longDescription = '' Ayatana Indicator Sound that provides easy control of the PulseAudio @@ -118,8 +119,8 @@ stdenv.mkDerivation (finalAttrs: { ''; homepage = "https://github.com/AyatanaIndicators/ayatana-indicator-sound"; changelog = "https://github.com/AyatanaIndicators/ayatana-indicator-sound/blob/${finalAttrs.version}/ChangeLog"; - license = licenses.gpl3Only; - maintainers = with maintainers; [ OPNA2608 ]; - platforms = platforms.linux; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ OPNA2608 ]; + platforms = lib.platforms.linux; }; })