Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tela-circle-icon-theme: init at unstable-2021-12-24 #154298

Merged
merged 1 commit into from Jan 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
65 changes: 65 additions & 0 deletions 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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -23962,6 +23962,8 @@ with pkgs;

theano = callPackage ../data/fonts/theano { };

tela-circle-icon-theme = callPackage ../data/icons/tela-circle-icon-theme { };

tela-icon-theme = callPackage ../data/icons/tela-icon-theme { };

template-glib = callPackage ../development/libraries/template-glib { };
Expand Down