2023-02-02 18:25:31 +00:00
|
|
|
{ stdenvNoCC
|
2021-12-06 16:07:01 +00:00
|
|
|
, lib
|
2023-02-02 18:25:31 +00:00
|
|
|
, fetchFromGitHub
|
2021-12-06 16:07:01 +00:00
|
|
|
, gnome-themes-extra
|
|
|
|
, gtk-engine-murrine
|
|
|
|
, gtk_engines
|
|
|
|
}:
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "rose-pine-gtk-theme";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "unstable-2022-09-01";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rose-pine";
|
|
|
|
repo = "gtk";
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = "7a4c40989fd42fd8d4a797f460c79fc4a085c304";
|
|
|
|
sha256 = "0q74wjyrsjyym770i3sqs071bvanwmm727xzv50wk6kzvpyqgi67";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gnome-themes-extra # adwaita engine for Gtk2
|
|
|
|
gtk_engines # pixmap engine for Gtk2
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedUserEnvPkgs = [
|
|
|
|
gtk-engine-murrine # murrine engine for Gtk2
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
# avoid the makefile which is only for theme maintainers
|
|
|
|
dontBuild = true;
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
mkdir -p $out/share/themes
|
2023-02-02 18:25:31 +00:00
|
|
|
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
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Rosé Pine theme for GTK";
|
|
|
|
homepage = "https://github.com/rose-pine/gtk";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.linux;
|
2023-02-02 18:25:31 +00:00
|
|
|
maintainers = with maintainers; [romildo the-argus];
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
}
|