2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gtk3
|
|
|
|
, breeze-icons
|
|
|
|
, gnome-icon-theme
|
|
|
|
, numix-icon-theme
|
|
|
|
, numix-icon-theme-circle
|
|
|
|
, hicolor-icon-theme
|
|
|
|
, jdupes
|
|
|
|
, gitUpdater
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "zafiro-icons";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "1.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zayronxio";
|
|
|
|
repo = pname;
|
2020-11-03 02:18:15 +00:00
|
|
|
rev = version;
|
2022-07-14 12:49:19 +00:00
|
|
|
sha256 = "sha256-IbFnlUOSADYMNMfvRuRPndxcQbnV12BqMDb9bJRjnoU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gtk3
|
2022-07-14 12:49:19 +00:00
|
|
|
jdupes
|
2020-05-03 17:38:23 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-05-03 17:38:23 +00:00
|
|
|
breeze-icons
|
|
|
|
gnome-icon-theme
|
|
|
|
numix-icon-theme
|
|
|
|
numix-icon-theme-circle
|
2020-04-24 23:36:52 +00:00
|
|
|
hicolor-icon-theme
|
2020-05-03 17:38:23 +00:00
|
|
|
# still missing parent icon themes: Surfn
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
dontPatchELF = true;
|
|
|
|
dontRewriteSymlinks = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
2022-07-14 12:49:19 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/share/icons
|
|
|
|
|
|
|
|
for theme in Dark Light; do
|
|
|
|
cp -a $theme $out/share/icons/Zafiro-icons-$theme
|
|
|
|
|
|
|
|
# remove unneeded files
|
|
|
|
rm $out/share/icons/Zafiro-icons-$theme/_config.yml
|
|
|
|
|
|
|
|
# remove files with non-ascii characters in name
|
|
|
|
# https://github.com/zayronxio/Zafiro-icons/issues/111
|
|
|
|
rm $out/share/icons/Zafiro-icons-$theme/apps/scalable/βTORRENT.svg
|
|
|
|
|
|
|
|
gtk-update-icon-cache $out/share/icons/Zafiro-icons-$theme
|
|
|
|
done
|
|
|
|
|
|
|
|
jdupes --link-soft --recurse $out/share
|
|
|
|
|
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
passthru.updateScript = gitUpdater { inherit pname version; };
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Icon pack flat with light colors";
|
|
|
|
homepage = "https://github.com/zayronxio/Zafiro-icons";
|
|
|
|
license = with licenses; [ gpl3 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|