2022-01-12 11:04:49 +00:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchFromGitHub
|
2022-07-22 13:50:41 +00:00
|
|
|
, gitUpdater
|
2022-01-12 11:04:49 +00:00
|
|
|
, gtk3
|
|
|
|
, hicolor-icon-theme
|
|
|
|
, jdupes
|
2022-07-22 13:50:41 +00:00
|
|
|
, colorVariants ? [] # default is all
|
|
|
|
, themeVariants ? [] # default is all
|
2022-01-12 11:04:49 +00:00
|
|
|
}:
|
|
|
|
|
2022-07-22 13:50:41 +00:00
|
|
|
let
|
2019-09-15 19:36:32 +00:00
|
|
|
pname = "qogir-icon-theme";
|
2022-07-22 13:50:41 +00:00
|
|
|
|
|
|
|
in
|
2022-10-08 12:18:56 +00:00
|
|
|
lib.checkListOfEnum "${pname}: color variants" [ "standard" "dark" "all" ] colorVariants
|
2022-07-22 13:50:41 +00:00
|
|
|
lib.checkListOfEnum "${pname}: theme variants" [ "default" "manjaro" "ubuntu" "all" ] themeVariants
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
inherit pname;
|
2023-02-23 11:30:48 +00:00
|
|
|
version = "2023-02-23";
|
2019-09-15 19:36:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vinceliuice";
|
|
|
|
repo = pname;
|
2020-01-29 11:27:56 +00:00
|
|
|
rev = version;
|
2023-02-23 11:30:48 +00:00
|
|
|
sha256 = "sha256-yXpHm/iXtBdEo6m8W7Itp3N9vrWRTb7S3aKi0X2RObo=";
|
2019-09-15 19:36:32 +00:00
|
|
|
};
|
|
|
|
|
2021-07-14 14:31:25 +00:00
|
|
|
nativeBuildInputs = [ gtk3 jdupes ];
|
2019-09-15 19:36:32 +00:00
|
|
|
|
2020-04-17 23:52:26 +00:00
|
|
|
propagatedBuildInputs = [ hicolor-icon-theme ];
|
|
|
|
|
2020-01-29 11:27:56 +00:00
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
|
2021-07-14 14:31:25 +00:00
|
|
|
# These fixup steps are slow and unnecessary.
|
|
|
|
dontPatchELF = true;
|
|
|
|
dontRewriteSymlinks = true;
|
|
|
|
|
2022-07-22 13:50:41 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs install.sh
|
|
|
|
'';
|
|
|
|
|
2019-09-15 19:36:32 +00:00
|
|
|
installPhase = ''
|
2021-07-14 14:28:42 +00:00
|
|
|
runHook preInstall
|
2022-07-22 13:50:41 +00:00
|
|
|
|
2019-09-15 19:36:32 +00:00
|
|
|
mkdir -p $out/share/icons
|
2022-07-22 13:50:41 +00:00
|
|
|
|
|
|
|
name= ./install.sh \
|
|
|
|
${lib.optionalString (themeVariants != []) ("--theme " + builtins.toString themeVariants)} \
|
|
|
|
${lib.optionalString (colorVariants != []) ("--color " + builtins.toString colorVariants)} \
|
|
|
|
--dest $out/share/icons
|
|
|
|
|
|
|
|
jdupes --quiet --link-soft --recurse $out/share
|
|
|
|
|
2021-07-14 14:28:42 +00:00
|
|
|
runHook postInstall
|
2019-09-15 19:36:32 +00:00
|
|
|
'';
|
|
|
|
|
2022-09-27 21:12:05 +00:00
|
|
|
passthru.updateScript = gitUpdater { };
|
2022-07-22 13:50:41 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-02-21 12:02:19 +00:00
|
|
|
description = "Flat colorful design icon theme";
|
2020-01-29 11:27:56 +00:00
|
|
|
homepage = "https://github.com/vinceliuice/Qogir-icon-theme";
|
2021-07-14 14:30:47 +00:00
|
|
|
license = with licenses; [ gpl3Only ];
|
2019-09-15 19:36:32 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|