nixpkgs/pkgs/data/icons/kora-icon-theme/default.nix
kilianar e4c43186c4 pkgs/data/icons: use stdenvNoCC where possible
Most icons themes just copy a bunch of files from the source to the
installation directory and therefore work perfectly fine with
stdenvNoCC.
All themes in pkgs/data/icons that still use stdenv after this change
are failing to build with stdenvNoCC.
2022-07-06 10:42:05 -03:00

47 lines
994 B
Nix

{ lib, stdenvNoCC, fetchFromGitHub , gtk3, adwaita-icon-theme, breeze-icons, hicolor-icon-theme }:
stdenvNoCC.mkDerivation rec {
pname = "kora-icon-theme";
version = "1.5.2";
src = fetchFromGitHub {
owner = "bikass";
repo = "kora";
rev = "v${version}";
sha256 = "sha256-OwuePPn4seHbzv81pnTEP1Q0Tp1ywZIEmw+dx3bDoXw=";
};
nativeBuildInputs = [
gtk3
];
propagatedBuildInputs = [
adwaita-icon-theme
breeze-icons
hicolor-icon-theme
];
dontDropIconThemeCache = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/icons
mv kora* $out/share/icons/
for theme in $out/share/icons/*; do
gtk-update-icon-cache -f $theme
done
runHook postInstall
'';
meta = with lib; {
description = "An SVG icon theme in four variants";
homepage = "https://github.com/bikass/kora";
license = with licenses; [ gpl3Only ];
platforms = platforms.linux;
maintainers = with maintainers; [ ];
};
}