Fix icon theme dependencies

This commit is contained in:
Malte Tammena 2021-06-05 12:07:00 +02:00
parent 575604589a
commit 84da57ceef
2 changed files with 8 additions and 9 deletions

View file

@ -5,7 +5,8 @@ rec {
gtk = {
enable = true;
theme = {
package = pkgs.callPackage ../pkgs/gruvbox-material-gtk.nix { hiDpi = true; };
package =
pkgs.callPackage ../pkgs/gruvbox-material-gtk.nix { hiDpi = true; };
name = "gruvbox-material";
};
iconTheme = {

View file

@ -1,5 +1,4 @@
{ lib, stdenv, fetchFromGitHub, gtk3, pantheon, breeze-icons, gnome-icon-theme
, hicolor-icon-theme }:
{ lib, stdenv, fetchFromGitHub, gtk3, papirus-icon-theme, hicolor-icon-theme }:
let lock = builtins.fromJSON (builtins.readFile ../flake.lock);
in stdenv.mkDerivation rec {
@ -15,15 +14,14 @@ in stdenv.mkDerivation rec {
nativeBuildInputs = [ gtk3 ];
propagatedBuildInputs = [
pantheon.elementary-icon-theme
breeze-icons
gnome-icon-theme
hicolor-icon-theme
];
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