8 , colorVariants ? [] # default is all
9 , themeVariants ? [] # default is all
13 pname = "qogir-icon-theme";
16 lib.checkListOfEnum "${pname}: color variants" [ "standard" "dark" "all" ] colorVariants
17 lib.checkListOfEnum "${pname}: theme variants" [ "default" "manjaro" "ubuntu" "all" ] themeVariants
19 stdenvNoCC.mkDerivation rec {
21 version = "2023-06-05";
23 src = fetchFromGitHub {
24 owner = "vinceliuice";
27 sha256 = "sha256-qiHmA/K4hdXVSFzergGhgssKR+kXp3X0cqtX1X5ayM4=";
30 nativeBuildInputs = [ gtk3 jdupes ];
32 propagatedBuildInputs = [ hicolor-icon-theme ];
34 dontDropIconThemeCache = true;
36 # These fixup steps are slow and unnecessary.
38 dontRewriteSymlinks = true;
41 patchShebangs install.sh
47 mkdir -p $out/share/icons
50 ${lib.optionalString (themeVariants != []) ("--theme " + builtins.toString themeVariants)} \
51 ${lib.optionalString (colorVariants != []) ("--color " + builtins.toString colorVariants)} \
52 --dest $out/share/icons
54 jdupes --quiet --link-soft --recurse $out/share
59 passthru.updateScript = gitUpdater { };
62 description = "Flat colorful design icon theme";
63 homepage = "https://github.com/vinceliuice/Qogir-icon-theme";
64 license = with licenses; [ gpl3Only ];
65 platforms = platforms.linux;
66 maintainers = with maintainers; [ romildo ];