2021-01-17 02:14:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitLab, autoreconfHook, pkg-config, parallel
|
2020-09-10 19:38:25 +01:00
|
|
|
, sassc, inkscape, libxml2, glib, gdk-pixbuf, librsvg, gtk-engine-murrine
|
2018-12-17 04:17:02 +00:00
|
|
|
, cinnamonSupport ? true
|
|
|
|
, gnomeFlashbackSupport ? true
|
|
|
|
, gnomeShellSupport ? true
|
|
|
|
, openboxSupport ? true
|
|
|
|
, xfceSupport ? true
|
2019-06-24 19:01:15 +01:00
|
|
|
, mateSupport ? true, gtk3, marco
|
2018-12-17 04:17:02 +00:00
|
|
|
, gtkNextSupport ? false
|
|
|
|
, plankSupport ? false
|
2019-05-22 01:26:00 +01:00
|
|
|
, steamSupport ? false
|
2019-06-24 19:01:15 +01:00
|
|
|
, telegramSupport ? false, zip
|
2019-05-31 20:03:37 +01:00
|
|
|
, tweetdeckSupport ? false
|
2018-12-17 04:17:02 +00:00
|
|
|
, selectionColor ? null # Primary color for 'selected-items' (Default: #3F51B5 = Indigo500)
|
|
|
|
, accentColor ? null # Secondary color for notifications and OSDs (Default: #7986CB = Indigo300)
|
|
|
|
, suggestionColor ? null # Secondary color for 'suggested' buttons (Default: #673AB7 = DPurple500)
|
|
|
|
, destructionColor ? null # Tertiary color for 'destructive' buttons (Default: #F44336 = Red500)
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-05-31 20:03:37 +01:00
|
|
|
pname = "plata-theme";
|
2020-05-23 05:33:01 +01:00
|
|
|
version = "0.9.8";
|
2018-12-17 04:17:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "tista500";
|
|
|
|
repo = "plata-theme";
|
|
|
|
rev = version;
|
2020-05-23 05:33:01 +01:00
|
|
|
sha256 = "1sqmydvx36f6r4snw22s2q4dvcyg30jd7kg7dibpzqn3njfkkfag";
|
2018-12-17 04:17:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preferLocalBuild = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
2021-01-17 02:14:13 +00:00
|
|
|
pkg-config
|
2018-12-17 04:17:02 +00:00
|
|
|
parallel
|
|
|
|
sassc
|
2020-09-10 19:38:25 +01:00
|
|
|
inkscape
|
2018-12-17 04:17:02 +00:00
|
|
|
libxml2
|
2019-06-24 19:01:15 +01:00
|
|
|
glib.dev
|
2019-05-22 01:26:00 +01:00
|
|
|
]
|
2021-01-15 07:29:18 +00:00
|
|
|
++ lib.optionals mateSupport [ gtk3 marco ]
|
|
|
|
++ lib.optional telegramSupport zip;
|
2018-12-17 04:17:02 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2019-05-22 12:03:39 +01:00
|
|
|
gdk-pixbuf
|
2018-12-17 04:17:02 +00:00
|
|
|
librsvg
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
|
|
|
|
|
|
|
|
postPatch = "patchShebangs .";
|
|
|
|
|
|
|
|
configureFlags =
|
|
|
|
let
|
2021-01-15 07:29:18 +00:00
|
|
|
inherit (lib) enableFeature optional;
|
2018-12-17 04:17:02 +00:00
|
|
|
withOptional = value: feat: optional (value != null) "--with-${feat}=${value}";
|
|
|
|
in [
|
|
|
|
"--enable-parallel"
|
|
|
|
(enableFeature cinnamonSupport "cinnamon")
|
|
|
|
(enableFeature gnomeFlashbackSupport "flashback")
|
|
|
|
(enableFeature gnomeShellSupport "gnome")
|
|
|
|
(enableFeature openboxSupport "openbox")
|
|
|
|
(enableFeature xfceSupport "xfce")
|
2019-06-24 19:01:15 +01:00
|
|
|
(enableFeature mateSupport "mate")
|
2018-12-17 04:17:02 +00:00
|
|
|
(enableFeature gtkNextSupport "gtk_next")
|
|
|
|
(enableFeature plankSupport "plank")
|
2019-05-22 01:26:00 +01:00
|
|
|
(enableFeature steamSupport "airforsteam")
|
2018-12-17 04:17:02 +00:00
|
|
|
(enableFeature telegramSupport "telegram")
|
|
|
|
(enableFeature tweetdeckSupport "tweetdeck")
|
|
|
|
]
|
|
|
|
++ (withOptional selectionColor "selection_color")
|
|
|
|
++ (withOptional accentColor "accent_color")
|
|
|
|
++ (withOptional suggestionColor "suggestion_color")
|
|
|
|
++ (withOptional destructionColor "destruction_color");
|
|
|
|
|
2019-05-22 01:26:00 +01:00
|
|
|
postInstall = ''
|
|
|
|
for dest in $out/share/gtksourceview-{3.0,4}/styles; do
|
|
|
|
mkdir -p $dest
|
|
|
|
cp $out/share/themes/Plata-{Noir,Lumine}/gtksourceview/*.xml $dest
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-09-03 23:49:40 +01:00
|
|
|
description = "A GTK theme based on Material Design Refresh";
|
2020-03-07 04:55:20 +00:00
|
|
|
homepage = "https://gitlab.com/tista500/plata-theme";
|
2018-12-17 04:17:02 +00:00
|
|
|
license = with licenses; [ gpl2 cc-by-sa-40 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.tadfisher ];
|
|
|
|
};
|
|
|
|
}
|