2022-01-19 23:45:15 +00:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gtk3
|
|
|
|
, hicolor-icon-theme
|
|
|
|
, jdupes
|
2022-03-10 19:12:11 +00:00
|
|
|
, gitUpdater
|
2022-01-19 23:45:15 +00:00
|
|
|
, 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;
|
2022-03-10 19:12:11 +00:00
|
|
|
version = "2022-03-07";
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vinceliuice";
|
|
|
|
repo = pname;
|
2022-02-10 20:34:41 +00:00
|
|
|
rev = version;
|
2022-03-10 19:12:11 +00:00
|
|
|
sha256 = "vQeWGZmurvT/UQJ1dx6t+ZeKdJ1Oq9TdHBADw64x18g=";
|
2022-01-19 23:45:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gtk3
|
|
|
|
jdupes
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
hicolor-icon-theme
|
|
|
|
];
|
|
|
|
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
|
|
|
|
# These fixup steps are slow and unnecessary for this package.
|
2022-02-10 20:34:41 +00:00
|
|
|
# Package may install almost 400 000 small files.
|
2022-01-19 23:45:15 +00:00
|
|
|
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}
|
|
|
|
|
2022-03-10 19:12:11 +00:00
|
|
|
jdupes --link-soft --recurse $out/share
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
passthru.updateScript = gitUpdater { };
|
2022-03-10 19:12:11 +00:00
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Flat and colorful personality icon theme";
|
|
|
|
homepage = "https://github.com/vinceliuice/Tela-circle-icon-theme";
|
|
|
|
license = licenses.gpl3Only;
|
2022-03-10 19:12:11 +00:00
|
|
|
platforms = platforms.linux; # darwin use case-insensitive filesystems that cause hash mismatches
|
2022-01-19 23:45:15 +00:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|