From e02cd8e9286fbbf27afefbc6032b4f035cca242d Mon Sep 17 00:00:00 2001 From: Ian McFarlane Date: Thu, 12 Jan 2023 22:58:33 -0600 Subject: [PATCH] rose-pine-gtk: format --- pkgs/data/icons/rose-pine/default.nix | 54 ++++++++-------- pkgs/data/themes/rose-pine-gtk/default.nix | 72 +++++++++++----------- 2 files changed, 63 insertions(+), 63 deletions(-) diff --git a/pkgs/data/icons/rose-pine/default.nix b/pkgs/data/icons/rose-pine/default.nix index a19b786f4ee8..6ce6f1d59a33 100644 --- a/pkgs/data/icons/rose-pine/default.nix +++ b/pkgs/data/icons/rose-pine/default.nix @@ -3,36 +3,36 @@ lib, fetchFromGitHub, }: - stdenv.mkDerivation rec { - pname = "rose-pine-icon-theme"; - version = "unstable-2022-09-01"; +stdenv.mkDerivation rec { + pname = "rose-pine-icon-theme"; + version = "unstable-2022-09-01"; - src = fetchFromGitHub { - owner = "rose-pine"; - repo = "gtk"; - rev = "7a4c40989fd42fd8d4a797f460c79fc4a085c304"; - sha256 = "0q74wjyrsjyym770i3sqs071bvanwmm727xzv50wk6kzvpyqgi67"; - }; + src = fetchFromGitHub { + owner = "rose-pine"; + repo = "gtk"; + rev = "7a4c40989fd42fd8d4a797f460c79fc4a085c304"; + sha256 = "0q74wjyrsjyym770i3sqs071bvanwmm727xzv50wk6kzvpyqgi67"; + }; - # avoid the makefile which is only for the theme maintainers - dontBuild = true; + # avoid the makefile which is only for the theme maintainers + dontBuild = true; - installPhase = '' - runHook preInstall + installPhase = '' + runHook preInstall - mkdir -p $out/share/icons - mv icons/rose-pine-icons $out/share/icons/rose-pine - mv icons/rose-pine-dawn-icons $out/share/icons/rose-pine-dawn - mv icons/rose-pine-moon-icons $out/share/icons/rose-pine-moon + mkdir -p $out/share/icons + mv icons/rose-pine-icons $out/share/icons/rose-pine + mv icons/rose-pine-dawn-icons $out/share/icons/rose-pine-dawn + mv icons/rose-pine-moon-icons $out/share/icons/rose-pine-moon - runHook postInstall - ''; + runHook postInstall + ''; - meta = with lib; { - description = "Rosé Pine icon theme for GTK"; - homepage = "https://github.com/rose-pine/gtk"; - license = licenses.gpl3Only; - platforms = platforms.linux; - maintainers = with maintainers; [romildo the-argus]; - }; - } + meta = with lib; { + description = "Rosé Pine icon theme for GTK"; + homepage = "https://github.com/rose-pine/gtk"; + license = licenses.gpl3Only; + platforms = platforms.linux; + maintainers = with maintainers; [romildo the-argus]; + }; +} diff --git a/pkgs/data/themes/rose-pine-gtk/default.nix b/pkgs/data/themes/rose-pine-gtk/default.nix index 309b115d6bef..8398373756f8 100644 --- a/pkgs/data/themes/rose-pine-gtk/default.nix +++ b/pkgs/data/themes/rose-pine-gtk/default.nix @@ -4,48 +4,48 @@ lib, gnome-themes-extra, gtk-engine-murrine, - gtk_engines + gtk_engines, }: - stdenv.mkDerivation rec { - pname = "rose-pine-${variant}-gtk-theme"; - version = "unstable-2022-09-01"; +stdenv.mkDerivation rec { + pname = "rose-pine-${variant}-gtk-theme"; + version = "unstable-2022-09-01"; - src = fetchFromGitHub { - owner = "rose-pine"; - repo = "gtk"; - rev = "7a4c40989fd42fd8d4a797f460c79fc4a085c304"; - sha256 = "0q74wjyrsjyym770i3sqs071bvanwmm727xzv50wk6kzvpyqgi67"; - }; + src = fetchFromGitHub { + owner = "rose-pine"; + repo = "gtk"; + rev = "7a4c40989fd42fd8d4a797f460c79fc4a085c304"; + sha256 = "0q74wjyrsjyym770i3sqs071bvanwmm727xzv50wk6kzvpyqgi67"; + }; - buildInputs = [ - gnome-themes-extra # adwaita engine for Gtk2 - gtk_engines # pixmap engine for Gtk2 - ]; + buildInputs = [ + gnome-themes-extra # adwaita engine for Gtk2 + gtk_engines # pixmap engine for Gtk2 + ]; - propagatedUserEnvPkgs = [ - gtk-engine-murrine # murrine engine for Gtk2 - ]; + propagatedUserEnvPkgs = [ + gtk-engine-murrine # murrine engine for Gtk2 + ]; - # avoid the makefile which is only for theme maintainers - dontBuild = true; + # avoid the makefile which is only for theme maintainers + dontBuild = true; - installPhase = '' - runHook preInstall + 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 + 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 - runHook postInstall - ''; + runHook postInstall + ''; - meta = with lib; { - description = "Rosé Pine theme for GTK"; - homepage = "https://github.com/rose-pine/gtk"; - license = licenses.gpl3Only; - platforms = platforms.linux; - maintainers = with maintainers; [romildo the-argus]; - }; - } + meta = with lib; { + description = "Rosé Pine theme for GTK"; + homepage = "https://github.com/rose-pine/gtk"; + license = licenses.gpl3Only; + platforms = platforms.linux; + maintainers = with maintainers; [romildo the-argus]; + }; +}