Merge pull request #61844 from tadfisher/plata-theme

plata-theme: 0.7.6 -> 0.8.0
This commit is contained in:
Renaud 2019-05-23 01:19:46 +02:00 committed by GitHub
commit f6fbff85cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,23 +8,26 @@
, xfceSupport ? true , xfceSupport ? true
, gtkNextSupport ? false , gtkNextSupport ? false
, plankSupport ? false , plankSupport ? false
, steamSupport ? false
, telegramSupport ? false , telegramSupport ? false
, tweetdeckSupport ? false , tweetdeckSupport ? false, zip ? null
, selectionColor ? null # Primary color for 'selected-items' (Default: #3F51B5 = Indigo500) , selectionColor ? null # Primary color for 'selected-items' (Default: #3F51B5 = Indigo500)
, accentColor ? null # Secondary color for notifications and OSDs (Default: #7986CB = Indigo300) , accentColor ? null # Secondary color for notifications and OSDs (Default: #7986CB = Indigo300)
, suggestionColor ? null # Secondary color for 'suggested' buttons (Default: #673AB7 = DPurple500) , suggestionColor ? null # Secondary color for 'suggested' buttons (Default: #673AB7 = DPurple500)
, destructionColor ? null # Tertiary color for 'destructive' buttons (Default: #F44336 = Red500) , destructionColor ? null # Tertiary color for 'destructive' buttons (Default: #F44336 = Red500)
}: }:
assert tweetdeckSupport -> zip != null;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "plata-theme-${version}"; name = "plata-theme-${version}";
version = "0.7.6"; version = "0.8.0";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "tista500"; owner = "tista500";
repo = "plata-theme"; repo = "plata-theme";
rev = version; rev = version;
sha256 = "1jllsl2h3zdvlp3k2dy3h4jyccrzzymwbqz43jhnm6mxxabxzijg"; sha256 = "10xvfrc945zqlgzlx8zjyg0gnkwmq9vfjk0yqjy3gg62i65s8sch";
}; };
preferLocalBuild = true; preferLocalBuild = true;
@ -37,7 +40,8 @@ stdenv.mkDerivation rec {
inkscape inkscape
libxml2 libxml2
gnome2.glib.dev gnome2.glib.dev
]; ]
++ stdenv.lib.optional tweetdeckSupport zip;
buildInputs = [ buildInputs = [
gdk_pixbuf gdk_pixbuf
@ -62,6 +66,7 @@ stdenv.mkDerivation rec {
(enableFeature xfceSupport "xfce") (enableFeature xfceSupport "xfce")
(enableFeature gtkNextSupport "gtk_next") (enableFeature gtkNextSupport "gtk_next")
(enableFeature plankSupport "plank") (enableFeature plankSupport "plank")
(enableFeature steamSupport "airforsteam")
(enableFeature telegramSupport "telegram") (enableFeature telegramSupport "telegram")
(enableFeature tweetdeckSupport "tweetdeck") (enableFeature tweetdeckSupport "tweetdeck")
] ]
@ -70,6 +75,13 @@ stdenv.mkDerivation rec {
++ (withOptional suggestionColor "suggestion_color") ++ (withOptional suggestionColor "suggestion_color")
++ (withOptional destructionColor "destruction_color"); ++ (withOptional destructionColor "destruction_color");
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
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A Gtk+ theme based on Material Design Refresh"; description = "A Gtk+ theme based on Material Design Refresh";
homepage = https://gitlab.com/tista500/plata-theme; homepage = https://gitlab.com/tista500/plata-theme;