2022-01-13 20:06:32 +00:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchFromGitHub
|
2022-08-12 12:06:08 +00:00
|
|
|
, gitUpdater
|
2022-01-13 20:06:32 +00:00
|
|
|
, gtk3
|
|
|
|
, hicolor-icon-theme
|
|
|
|
, jdupes
|
2022-08-12 12:06:08 +00:00
|
|
|
, colorVariants ? [] # default is all
|
|
|
|
, themeVariants ? [] # default is all
|
2022-01-13 20:06:32 +00:00
|
|
|
}:
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
let
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "qogir-icon-theme";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
in
|
2022-10-21 18:38:19 +00:00
|
|
|
lib.checkListOfEnum "${pname}: color variants" [ "standard" "dark" "all" ] colorVariants
|
2022-08-12 12:06:08 +00:00
|
|
|
lib.checkListOfEnum "${pname}: theme variants" [ "default" "manjaro" "ubuntu" "all" ] themeVariants
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
inherit pname;
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "2022-11-05";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vinceliuice";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-11-21 17:40:18 +00:00
|
|
|
sha256 = "sha256-KQ3NmxNtJTURjH15hyZzngJ6aVTwlze28xQbRTlQmPE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-16 19:40:57 +00:00
|
|
|
nativeBuildInputs = [ gtk3 jdupes ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
propagatedBuildInputs = [ hicolor-icon-theme ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
|
2021-07-16 19:40:57 +00:00
|
|
|
# These fixup steps are slow and unnecessary.
|
|
|
|
dontPatchELF = true;
|
|
|
|
dontRewriteSymlinks = true;
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs install.sh
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
2021-07-16 19:40:57 +00:00
|
|
|
runHook preInstall
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
mkdir -p $out/share/icons
|
2022-08-12 12:06:08 +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-16 19:40:57 +00:00
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
passthru.updateScript = gitUpdater { };
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Flat colorful design icon theme";
|
|
|
|
homepage = "https://github.com/vinceliuice/Qogir-icon-theme";
|
2021-07-16 19:40:57 +00:00
|
|
|
license = with licenses; [ gpl3Only ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|