rose-pine-gtk: use nixpkgs-fmt, NoCC, and update icon cache

This commit is contained in:
Ian McFarlane 2023-01-22 21:12:09 +00:00 committed by Ian McFarlane
parent b92f2042a0
commit fc0c3f5382
2 changed files with 22 additions and 13 deletions

View File

@ -1,9 +1,10 @@
{ { stdenvNoCC
stdenv, , lib
lib, , fetchFromGitHub
fetchFromGitHub, , gtk3
}: }:
stdenv.mkDerivation rec {
stdenvNoCC.mkDerivation rec {
pname = "rose-pine-icon-theme"; pname = "rose-pine-icon-theme";
version = "unstable-2022-09-01"; version = "unstable-2022-09-01";
@ -14,6 +15,10 @@ stdenv.mkDerivation rec {
sha256 = "0q74wjyrsjyym770i3sqs071bvanwmm727xzv50wk6kzvpyqgi67"; sha256 = "0q74wjyrsjyym770i3sqs071bvanwmm727xzv50wk6kzvpyqgi67";
}; };
nativeBuildInputs = [
gtk3
];
# avoid the makefile which is only for the theme maintainers # avoid the makefile which is only for the theme maintainers
dontBuild = true; dontBuild = true;
@ -25,6 +30,10 @@ stdenv.mkDerivation rec {
mv icons/rose-pine-dawn-icons $out/share/icons/rose-pine-dawn mv icons/rose-pine-dawn-icons $out/share/icons/rose-pine-dawn
mv icons/rose-pine-moon-icons $out/share/icons/rose-pine-moon mv icons/rose-pine-moon-icons $out/share/icons/rose-pine-moon
for theme in $out/share/icons/*; do
gtk-update-icon-cache $theme
done
runHook postInstall runHook postInstall
''; '';

View File

@ -1,12 +1,12 @@
{ { stdenvNoCC
stdenv, , lib
fetchFromGitHub, , fetchFromGitHub
lib, , gnome-themes-extra
gnome-themes-extra, , gtk-engine-murrine
gtk-engine-murrine, , gtk_engines
gtk_engines,
}: }:
stdenv.mkDerivation rec {
stdenvNoCC.mkDerivation rec {
pname = "rose-pine-gtk-theme"; pname = "rose-pine-gtk-theme";
version = "unstable-2022-09-01"; version = "unstable-2022-09-01";