nixpkgs/pkgs/by-name/gr/gruvbox-plus-icons/package.nix

48 lines
1.1 KiB
Nix

{
lib
, stdenvNoCC
, fetchFromGitHub
, gtk3
, plasma5Packages
, gnome-icon-theme
, hicolor-icon-theme
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "gruvbox-plus-icons";
version = "5.3.1";
src = fetchFromGitHub {
owner = "SylEleuth";
repo = "gruvbox-plus-icon-pack";
rev = "v${finalAttrs.version}";
sha256 = "sha256-Y+wNmZTVWsg6Hn+fak71jnoZ72Cz/8YYpGWkKr4+C9Q=";
};
nativeBuildInputs = [ gtk3 ];
propagatedBuildInputs = [ plasma5Packages.breeze-icons gnome-icon-theme hicolor-icon-theme ];
installPhase = ''
runHook preInstall
mkdir -p $out/share/icons
cp -r Gruvbox-Plus-Dark $out/share/icons/
gtk-update-icon-cache $out/share/icons/Gruvbox-Plus-Dark
runHook postInstall
'';
dontDropIconThemeCache = true;
dontBuild = true;
dontConfigure = true;
meta = with lib; {
description = "Icon pack for Linux desktops based on the Gruvbox color scheme";
homepage = "https://github.com/SylEleuth/gruvbox-plus-icon-pack";
license = licenses.gpl3Only;
platforms = platforms.linux;
maintainers = with maintainers; [ eureka-cpu RGBCube ];
};
})