Merge pull request #163368 from romildo/upd.tela-circle-icon-theme

This commit is contained in:
Sandro 2022-03-10 16:07:08 +01:00 committed by GitHub
commit c8b8b0d16d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,7 @@
, gtk3 , gtk3
, hicolor-icon-theme , hicolor-icon-theme
, jdupes , jdupes
, gitUpdater
, allColorVariants ? false , allColorVariants ? false
, circularFolder ? false , circularFolder ? false
, colorVariants ? [] # default is standard , colorVariants ? [] # default is standard
@ -16,13 +17,13 @@ lib.checkListOfEnum "${pname}: color variants" [ "standard" "black" "blue" "brow
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation rec {
inherit pname; inherit pname;
version = "2022-02-08"; version = "2022-03-07";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "vinceliuice"; owner = "vinceliuice";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "08a1jhirvn2x9hhjr0lqqqayhsf446cddapprxpsnsn9q6x2j2gp"; sha256 = "vQeWGZmurvT/UQJ1dx6t+ZeKdJ1Oq9TdHBADw64x18g=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -50,16 +51,18 @@ stdenvNoCC.mkDerivation rec {
${lib.optionalString circularFolder "-c"} \ ${lib.optionalString circularFolder "-c"} \
${if allColorVariants then "-a" else builtins.toString colorVariants} ${if allColorVariants then "-a" else builtins.toString colorVariants}
jdupes -L -r $out/share/icons jdupes --link-soft --recurse $out/share
runHook postInstall runHook postInstall
''; '';
passthru.updateScript = gitUpdater {inherit pname version; };
meta = with lib; { meta = with lib; {
description = "Flat and colorful personality icon theme"; description = "Flat and colorful personality icon theme";
homepage = "https://github.com/vinceliuice/Tela-circle-icon-theme"; homepage = "https://github.com/vinceliuice/Tela-circle-icon-theme";
license = licenses.gpl3Only; license = licenses.gpl3Only;
platforms = platforms.unix; platforms = platforms.linux; # darwin use case-insensitive filesystems that cause hash mismatches
maintainers = with maintainers; [ romildo ]; maintainers = with maintainers; [ romildo ];
}; };
} }