diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-01-16 16:40:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-16 16:40:38 +0100 |
commit | 92530882439d6ff8e336afe5740903f0d2116e1c (patch) | |
tree | e93baf8fbfb124de5472287157cf101d0359ff25 /pkgs/data/icons | |
parent | 2a054fd167c8a7bd25d0a77dd40ab6ca2841bafd (diff) | |
parent | cf95d659da56b096ae1c7e0a9d21a74ac6731b43 (diff) |
Merge pull request #154298 from romildo/upd.tela-circle-icon-theme
Diffstat (limited to 'pkgs/data/icons')
-rw-r--r-- | pkgs/data/icons/tela-circle-icon-theme/default.nix | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/pkgs/data/icons/tela-circle-icon-theme/default.nix b/pkgs/data/icons/tela-circle-icon-theme/default.nix new file mode 100644 index 0000000000000..3ed389569bdc8 --- /dev/null +++ b/pkgs/data/icons/tela-circle-icon-theme/default.nix @@ -0,0 +1,65 @@ +{ lib +, stdenvNoCC +, fetchFromGitHub +, gtk3 +, hicolor-icon-theme +, jdupes +, allColorVariants ? false +, circularFolder ? false +, colorVariants ? [] # default is standard +}: + +let + pname = "tela-circle-icon-theme"; +in +lib.checkListOfEnum "${pname}: color variants" [ "standard" "black" "blue" "brown" "green" "grey" "orange" "pink" "purple" "red" "yellow" "manjaro" "ubuntu" ] colorVariants + +stdenvNoCC.mkDerivation rec { + inherit pname; + version = "unstable-2021-12-24"; + + src = fetchFromGitHub { + owner = "vinceliuice"; + repo = pname; + rev = "aa1f1446b6dbc6acfe3ee247e6841369c68e1495"; + sha256 = "03f79h6kv5vbf92fhpi1wivzvcrfvvdvkhbmy805x4b4wl7qynki"; + }; + + nativeBuildInputs = [ + gtk3 + jdupes + ]; + + propagatedBuildInputs = [ + hicolor-icon-theme + ]; + + dontDropIconThemeCache = true; + + # These fixup steps are slow and unnecessary for this package. + # Package may installs almost 400 000 small files. + dontPatchELF = true; + dontRewriteSymlinks = true; + + installPhase = '' + runHook preInstall + + patchShebangs install.sh + + ./install.sh -d $out/share/icons \ + ${lib.optionalString circularFolder "-c"} \ + ${if allColorVariants then "-a" else builtins.toString colorVariants} + + jdupes -L -r $out/share/icons + + runHook postInstall + ''; + + meta = with lib; { + description = "Flat and colorful personality icon theme"; + homepage = "https://github.com/vinceliuice/Tela-circle-icon-theme"; + license = licenses.gpl3Only; + platforms = platforms.unix; + maintainers = with maintainers; [ romildo ]; + }; +} |