2018-12-17 04:17:02 +00:00
|
|
|
{ stdenv, fetchFromGitLab, autoreconfHook, pkgconfig, parallel
|
2019-05-22 12:03:39 +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";
|
2019-08-19 18:25:25 +01:00
|
|
|
version = "0.8.9";
|
2018-12-17 04:17:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "tista500";
|
|
|
|
repo = "plata-theme";
|
|
|
|
rev = version;
|
2019-08-19 18:25:25 +01:00
|
|
|
sha256 = "0a2wczxxfd2nfr7biawbs3rwy2sivcl2sv43y2638gmfp0w6zh9r";
|
2018-12-17 04:17:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preferLocalBuild = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkgconfig
|
|
|
|
parallel
|
|
|
|
sassc
|
|
|
|
inkscape
|
|
|
|
libxml2
|
2019-06-24 19:01:15 +01:00
|
|
|
glib.dev
|
2019-05-22 01:26:00 +01:00
|
|
|
]
|
2019-06-24 19:01:15 +01:00
|
|
|
++ stdenv.lib.optionals mateSupport [ gtk3 marco ]
|
2019-05-31 20:03:37 +01:00
|
|
|
++ stdenv.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
|
|
|
|
inherit (stdenv.lib) enableFeature optional;
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2018-12-17 04:17:02 +00:00
|
|
|
meta = with stdenv.lib; {
|
2019-09-03 23:49:40 +01:00
|
|
|
description = "A GTK theme based on Material Design Refresh";
|
2018-12-17 04:17:02 +00:00
|
|
|
homepage = https://gitlab.com/tista500/plata-theme;
|
|
|
|
license = with licenses; [ gpl2 cc-by-sa-40 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.tadfisher ];
|
|
|
|
};
|
|
|
|
}
|