2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gtk3
|
|
|
|
, adwaita-icon-theme
|
|
|
|
, breeze-icons
|
|
|
|
, hicolor-icon-theme
|
|
|
|
, gitUpdater
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
2021-01-09 10:05:03 +00:00
|
|
|
pname = "kora-icon-theme";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.6.1";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bikass";
|
|
|
|
repo = "kora";
|
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
sha256 = "sha256-cWfQiJeyH/bkvASoe2nl4efHQdMpYFh587d5yycs31k=";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gtk3
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-03-23 19:22:30 +00:00
|
|
|
adwaita-icon-theme
|
2021-01-09 10:05:03 +00:00
|
|
|
breeze-icons
|
|
|
|
hicolor-icon-theme
|
|
|
|
];
|
|
|
|
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-03-23 19:22:30 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
mkdir -p $out/share/icons
|
2022-08-12 12:06:08 +00:00
|
|
|
cp -a kora* $out/share/icons/
|
|
|
|
rm $out/share/icons/kora*/create-new-icon-theme.cache.sh
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
for theme in $out/share/icons/*; do
|
2021-03-23 19:22:30 +00:00
|
|
|
gtk-update-icon-cache -f $theme
|
2021-01-09 10:05:03 +00:00
|
|
|
done
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2021-01-09 10:05:03 +00:00
|
|
|
'';
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
rev-prefix = "v";
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-01-09 10:05:03 +00:00
|
|
|
description = "An SVG icon theme in four variants";
|
|
|
|
homepage = "https://github.com/bikass/kora";
|
|
|
|
license = with licenses; [ gpl3Only ];
|
|
|
|
platforms = platforms.linux;
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
}
|