[user/malte] Switch to paper icon theme

This commit is contained in:
Malte Tammena 2022-03-20 21:46:52 +01:00
parent 954904abae
commit f5d66f739c
2 changed files with 2 additions and 46 deletions

View file

@ -1,44 +0,0 @@
{ lib, stdenv, fetchFromGitHub, gtk3, papirus-icon-theme, hicolor-icon-theme }:
let lock = builtins.fromJSON (builtins.readFile ../flake.lock);
in stdenv.mkDerivation rec {
pname = lock.nodes.gruvbox-material-gtk.locked.repo + "-icons";
version = lock.nodes.gruvbox-material-gtk.locked.rev;
src = fetchFromGitHub {
owner = lock.nodes.gruvbox-material-gtk.locked.owner;
repo = lock.nodes.gruvbox-material-gtk.locked.repo;
rev = lock.nodes.gruvbox-material-gtk.locked.rev;
sha256 = lock.nodes.gruvbox-material-gtk.locked.narHash;
};
nativeBuildInputs = [ gtk3 ];
propagatedBuildInputs = [ papirus-icon-theme hicolor-icon-theme ];
dontDropIconThemeCache = true;
buildPhase = ''
sed -i 's|^Inherits=.*$|Inherits=Papirus,hicolor|' icons/Gruvbox-Material-Dark/index.theme
'';
installPhase = ''
runHook preInstall
mkdir -p $out/share/icons
mv icons/* $out/share/icons
for theme in $out/share/icons/*; do
gtk-update-icon-cache $theme
done
runHook postInstall
'';
meta = with lib; {
description = "Gruvbox Material for GTK - Icons";
homepage = "https://github.com/sainnhe/gruvbox-material-gtk";
license = licenses.mit;
platforms = platforms.linux;
maintainers = [ ];
};
}

View file

@ -16,8 +16,8 @@ in rec {
name = "gruvbox-material";
};
iconTheme = {
package = pkgs.callPackage ../../pkgs/gruvbox-material-icons.nix { };
name = "Gruvbox-Material-Dark";
package = pkgs.paper-icon-theme;
name = "Paper Icon Theme";
};
gtk2 = {