papirus-maia-icon-theme: add missing parent icon themes

Also:
- move postFixup actions to postInstallPhase
gstqt5
José Romildo Malaquias 2020-04-16 10:38:23 -03:00
parent 1aac597a51
commit 7cd86ce7a1
1 changed files with 11 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, gtk3 }:
{ stdenv, fetchFromGitHub, cmake, gtk3, breeze-icons, gnome-icon-theme, papirus-icon-theme, hicolor-icon-theme }:
stdenv.mkDerivation rec {
pname = "papirus-maia-icon-theme";
@ -16,11 +16,20 @@ stdenv.mkDerivation rec {
gtk3
];
propagatedBuildInputs = [
breeze-icons
gnome-icon-theme
papirus-icon-theme
hicolor-icon-theme
];
dontDropIconThemeCache = true;
postPatch = ''
substituteInPlace CMakeLists.txt --replace /usr "$out"
'';
postFixup = ''
postInstall = ''
for theme in $out/share/icons/*; do
gtk-update-icon-cache $theme
done