From a6de979ec5c4177776d3bc4574c5bf9d0f1e86e9 Mon Sep 17 00:00:00 2001 From: Icy-Thought Date: Tue, 2 May 2023 10:42:20 +0200 Subject: [PATCH] rose-pine-gtk: add missing gtk-4.0 files --- pkgs/data/themes/rose-pine-gtk/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/data/themes/rose-pine-gtk/default.nix b/pkgs/data/themes/rose-pine-gtk/default.nix index 4211864139df..d211a99ef080 100644 --- a/pkgs/data/themes/rose-pine-gtk/default.nix +++ b/pkgs/data/themes/rose-pine-gtk/default.nix @@ -32,11 +32,13 @@ stdenvNoCC.mkDerivation rec { installPhase = '' runHook preInstall - mkdir -p $out/share/themes - mv gtk3/rose-pine-gtk $out/share/themes/rose-pine - mv gtk3/rose-pine-moon-gtk $out/share/themes/rose-pine-moon - mv gtk3/rose-pine-dawn-gtk $out/share/themes/rose-pine-dawn - mv gnome_shell/moon/gnome-shell $out/share/themes/rose-pine-moon + mkdir -p $out/share/themes/rose-pine{,-dawn,-moon}/gtk-4.0 + + variants=("rose-pine" "rose-pine-dawn" "rose-pine-moon") + for n in "''${variants[@]}"; do + cp -r $src/gtk3/"''${n}"-gtk/* $out/share/themes/"''${n}" + cp -r $src/gtk4/"''${n}".css $out/share/themes/"''${n}"/gtk-4.0/gtk.css + done runHook postInstall '';