diff options
Diffstat (limited to 'pkgs/data/icons/hicolor-icon-theme/default.nix')
-rw-r--r-- | pkgs/data/icons/hicolor-icon-theme/default.nix | 38 |
1 files changed, 30 insertions, 8 deletions
diff --git a/pkgs/data/icons/hicolor-icon-theme/default.nix b/pkgs/data/icons/hicolor-icon-theme/default.nix index 096baa49acea9..0d528243a8654 100644 --- a/pkgs/data/icons/hicolor-icon-theme/default.nix +++ b/pkgs/data/icons/hicolor-icon-theme/default.nix @@ -1,20 +1,42 @@ -{ lib, stdenvNoCC, fetchurl }: +{ + lib, + stdenvNoCC, + fetchFromGitLab, + testers, + meson, + pkg-config, + ninja, +}: -stdenvNoCC.mkDerivation rec { +stdenvNoCC.mkDerivation (finalAttrs: { pname = "hicolor-icon-theme"; - version = "0.17"; + version = "0.18"; - src = fetchurl { - url = "https://icon-theme.freedesktop.org/releases/hicolor-icon-theme-${version}.tar.xz"; - sha256 = "1n59i3al3zx6p90ff0l43gzpzmlqnzm6hf5cryxqrlbi48sq8x1i"; + src = fetchFromGitLab { + domain = "gitlab.freedesktop.org"; + owner = "xdg"; + repo = "default-icon-theme"; + rev = "v${finalAttrs.version}"; + hash = "sha256-uoB7u/ok7vMxKDl8pINdnV9VsvmsntBcZuz3Q4zGz7M="; }; + nativeBuildInputs = [ + meson + pkg-config + ninja + ]; + setupHook = ./setup-hook.sh; + passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; + meta = with lib; { description = "Default fallback theme used by implementations of the icon theme specification"; - homepage = "https://icon-theme.freedesktop.org/releases/"; + homepage = "https://www.freedesktop.org/wiki/Software/icon-theme/"; + changelog = "https://gitlab.freedesktop.org/xdg/default-icon-theme/-/blob/${finalAttrs.src.rev}/NEWS"; platforms = platforms.unix; license = licenses.gpl2Only; + pkgConfigModules = [ "default-icon-theme" ]; + maintainers = with maintainers; [ jopejoe1 ]; }; -} +}) |