rose-pine-gtk: format
This commit is contained in:
parent
0d1d125033
commit
99a82dd360
@ -1,10 +1,11 @@
|
||||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
, gnome-themes-extra
|
||||
, gtk-engine-murrine
|
||||
, gtk_engines
|
||||
, variant ? "default"
|
||||
{
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
gnome-themes-extra,
|
||||
gtk-engine-murrine,
|
||||
gtk_engines,
|
||||
variant ? "default",
|
||||
}: let
|
||||
source-locations = {
|
||||
default = "gtk3/rose-pine-gtk";
|
||||
@ -17,48 +18,48 @@
|
||||
then source-locations.${variant}
|
||||
else abort "unknown rose-pine variant ${variant}";
|
||||
in
|
||||
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 ${source-location} $out/share/themes/rose-pine
|
||||
${
|
||||
if variant == "moon"
|
||||
then "mv gnome_shell/moon/gnome-shell $out/share/themes/rose-pine"
|
||||
else ""
|
||||
}
|
||||
mkdir -p $out/share/themes
|
||||
mv ${source-location} $out/share/themes/rose-pine
|
||||
${
|
||||
if variant == "moon"
|
||||
then "mv gnome_shell/moon/gnome-shell $out/share/themes/rose-pine"
|
||||
else ""
|
||||
}
|
||||
|
||||
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];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user