From 0b812c809d8f8a1a067b2b483fead85a8d0cc68e Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Thu, 1 May 2025 07:48:45 +0200 Subject: [PATCH] decibels: Assimilate to GNOME core https://blogs.gnome.org/mcatanzaro/2025/03/21/gnome-48-core-apps-update/ It is now part of GNOME core apps set. - Add GNOME team as maintainers. - Use `finalAttrs`. - Update repo paths. - Use GNOME sources and update script. --- pkgs/by-name/de/decibels/package.nix | 32 ++++++++++++++-------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/pkgs/by-name/de/decibels/package.nix b/pkgs/by-name/de/decibels/package.nix index 8d3105cac66a..dbfb975e1530 100644 --- a/pkgs/by-name/de/decibels/package.nix +++ b/pkgs/by-name/de/decibels/package.nix @@ -1,7 +1,7 @@ { lib, stdenv, - fetchFromGitLab, + fetchurl, appstream, blueprint-compiler, desktop-file-utils, @@ -13,20 +13,15 @@ pkg-config, typescript, wrapGAppsHook4, - nix-update-script, + gnome, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "decibels"; version = "48.0"; - src = fetchFromGitLab { - domain = "gitlab.gnome.org"; - group = "GNOME"; - owner = "Incubator"; - repo = "decibels"; - tag = version; - hash = "sha256-qtKiKfcxGLuV1bE3lb7l4s+reZRJXcjlV35M8eZmvHc="; - fetchSubmodules = true; + src = fetchurl { + url = "mirror://gnome/sources/decibels/${lib.versions.major finalAttrs.version}/decibels-${finalAttrs.version}.tar.xz"; + hash = "sha256-IpsRqSYxR7y4w+If8NSvZZ+yYmL4rs5Uetz4xl4DH3Q="; }; nativeBuildInputs = [ @@ -60,16 +55,21 @@ stdenv.mkDerivation rec { ''; passthru = { - updateScript = nix-update-script { }; + updateScript = gnome.updateScript { + packageName = "decibels"; + }; }; meta = { description = "Play audio files"; - homepage = "https://gitlab.gnome.org/GNOME/Incubator/decibels"; - changelog = "https://gitlab.gnome.org/GNOME/decibels/-/blob/${version}/NEWS?ref_type=tags"; + homepage = "https://gitlab.gnome.org/GNOME/decibels"; + changelog = "https://gitlab.gnome.org/GNOME/decibels/-/blob/${finalAttrs.version}/NEWS?ref_type=tags"; license = lib.licenses.gpl3Only; - teams = [ lib.teams.gnome-circle ]; + teams = [ + lib.teams.gnome + lib.teams.gnome-circle + ]; mainProgram = "org.gnome.Decibels"; platforms = lib.platforms.linux; }; -} +})