nixpkgs-suyu/pkgs/data/icons/zafiro-icons/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

77 lines
1.6 KiB
Nix
Raw Normal View History

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
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;
rev = version;
2022-07-12 23:11:55 +02:00
sha256 = "sha256-IbFnlUOSADYMNMfvRuRPndxcQbnV12BqMDb9bJRjnoU=";
2018-11-20 16:43:43 +01:00
};
nativeBuildInputs = [
gtk3
jdupes
];
2018-11-20 16:43:43 +01:00
propagatedBuildInputs = [
breeze-icons
gnome-icon-theme
numix-icon-theme
numix-icon-theme-circle
hicolor-icon-theme
# still missing parent icon themes: Surfn
];
dontDropIconThemeCache = true;
dontPatchELF = true;
dontRewriteSymlinks = true;
2018-11-20 16:43:43 +01:00
installPhase = ''
runHook preInstall
2022-07-12 23:11:55 +02:00
mkdir -p $out/share/icons
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-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
jdupes --link-soft --recurse $out/share
runHook postInstall
2018-11-20 16:43:43 +01:00
'';
passthru.updateScript = gitUpdater { };
2022-07-12 23:11:55 +02:00
meta = with lib; {
2018-11-20 16:43:43 +01:00
description = "Icon pack flat with light colors";
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 ];
};
}