nixpkgs/pkgs/data/icons/kora-icon-theme/default.nix

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

60 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenvNoCC
, fetchFromGitHub
, gtk3
, adwaita-icon-theme
, breeze-icons
, hicolor-icon-theme
, gitUpdater
}:
2021-01-04 23:33:46 +00:00
stdenvNoCC.mkDerivation rec {
2021-01-04 23:33:46 +00:00
pname = "kora-icon-theme";
2023-09-13 06:02:47 +00:00
version = "1.5.8";
2021-01-04 23:33:46 +00:00
src = fetchFromGitHub {
owner = "bikass";
repo = "kora";
rev = "v${version}";
2023-09-13 06:02:47 +00:00
sha256 = "sha256-ZPjtY6s3Sgl0aU2pAxagTMFIOcwDAZQRYtvOC0FBJaI=";
2021-01-04 23:33:46 +00:00
};
nativeBuildInputs = [
gtk3
];
propagatedBuildInputs = [
2021-03-03 16:45:10 +00:00
adwaita-icon-theme
2021-01-04 23:33:46 +00:00
breeze-icons
hicolor-icon-theme
];
dontDropIconThemeCache = true;
installPhase = ''
2021-03-03 16:45:10 +00:00
runHook preInstall
2021-01-04 23:33:46 +00:00
mkdir -p $out/share/icons
cp -a kora* $out/share/icons/
rm $out/share/icons/kora*/create-new-icon-theme.cache.sh
2021-01-04 23:33:46 +00:00
for theme in $out/share/icons/*; do
2021-03-03 16:45:10 +00:00
gtk-update-icon-cache -f $theme
2021-01-04 23:33:46 +00:00
done
2021-03-03 16:45:10 +00:00
runHook postInstall
2021-01-04 23:33:46 +00:00
'';
passthru.updateScript = gitUpdater {
rev-prefix = "v";
};
meta = with lib; {
2021-01-04 23:33:46 +00:00
description = "An SVG icon theme in four variants";
homepage = "https://github.com/bikass/kora";
license = with licenses; [ gpl3Only ];
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
2021-01-04 23:33:46 +00:00
};
}