2022-07-12 23:11:55 +02:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gtk3
|
|
|
|
, breeze-icons
|
|
|
|
, gnome-icon-theme
|
|
|
|
, numix-icon-theme
|
|
|
|
, numix-icon-theme-circle
|
|
|
|
, hicolor-icon-theme
|
|
|
|
, jdupes
|
|
|
|
, gitUpdater
|
|
|
|
}:
|
2018-11-20 16:43:43 +01:00
|
|
|
|
2022-07-06 11:26:54 +02:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2018-11-20 16:43:43 +01:00
|
|
|
pname = "zafiro-icons";
|
2022-07-12 23:11:55 +02:00
|
|
|
version = "1.3";
|
2018-11-20 16:43:43 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zayronxio";
|
|
|
|
repo = pname;
|
2020-11-01 23:39:49 +01:00
|
|
|
rev = version;
|
2022-07-12 23:11:55 +02:00
|
|
|
sha256 = "sha256-IbFnlUOSADYMNMfvRuRPndxcQbnV12BqMDb9bJRjnoU=";
|
2018-11-20 16:43:43 +01:00
|
|
|
};
|
|
|
|
|
2020-04-18 01:51:41 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gtk3
|
2022-07-06 11:26:54 +02:00
|
|
|
jdupes
|
2020-04-18 01:51:41 +02:00
|
|
|
];
|
2018-11-20 16:43:43 +01:00
|
|
|
|
2019-09-12 16:47:48 +02:00
|
|
|
propagatedBuildInputs = [
|
2020-04-18 01:51:41 +02:00
|
|
|
breeze-icons
|
|
|
|
gnome-icon-theme
|
|
|
|
numix-icon-theme
|
|
|
|
numix-icon-theme-circle
|
2019-09-12 16:47:48 +02:00
|
|
|
hicolor-icon-theme
|
2020-04-18 01:51:41 +02:00
|
|
|
# still missing parent icon themes: Surfn
|
2019-09-12 16:47:48 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
|
2022-07-06 11:26:54 +02:00
|
|
|
dontPatchELF = true;
|
|
|
|
dontRewriteSymlinks = true;
|
|
|
|
|
2018-11-20 16:43:43 +01:00
|
|
|
installPhase = ''
|
2022-07-06 11:26:54 +02:00
|
|
|
runHook preInstall
|
|
|
|
|
2022-07-12 23:11:55 +02:00
|
|
|
mkdir -p $out/share/icons
|
2022-07-06 11:26:54 +02:00
|
|
|
|
2022-07-12 23:11:55 +02:00
|
|
|
for theme in Dark Light; do
|
|
|
|
cp -a $theme $out/share/icons/Zafiro-icons-$theme
|
2022-07-06 11:26:54 +02:00
|
|
|
|
2022-07-12 23:11:55 +02:00
|
|
|
# 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
|
2022-07-06 11:26:54 +02:00
|
|
|
|
|
|
|
jdupes --link-soft --recurse $out/share
|
|
|
|
|
|
|
|
runHook postInstall
|
2018-11-20 16:43:43 +01:00
|
|
|
'';
|
|
|
|
|
2022-09-27 23:12:05 +02:00
|
|
|
passthru.updateScript = gitUpdater { };
|
2022-07-12 23:11:55 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-11-20 16:43:43 +01:00
|
|
|
description = "Icon pack flat with light colors";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/zayronxio/Zafiro-icons";
|
2018-11-20 16:43:43 +01:00
|
|
|
license = with licenses; [ gpl3 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|