Skip to content

Commit

Permalink
plata-theme: 0.7.6 -> 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tadfisher committed May 22, 2019
1 parent 650a295 commit 87783a2
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions pkgs/data/themes/plata/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,26 @@
, xfceSupport ? true
, gtkNextSupport ? false
, plankSupport ? false
, steamSupport ? false
, telegramSupport ? false
, tweetdeckSupport ? false
, tweetdeckSupport ? false, zip ? null
, 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)
}:

assert tweetdeckSupport -> zip != null;

stdenv.mkDerivation rec {
name = "plata-theme-${version}";
version = "0.7.6";
version = "0.8.0";

src = fetchFromGitLab {
owner = "tista500";
repo = "plata-theme";
rev = version;
sha256 = "1jllsl2h3zdvlp3k2dy3h4jyccrzzymwbqz43jhnm6mxxabxzijg";
sha256 = "10xvfrc945zqlgzlx8zjyg0gnkwmq9vfjk0yqjy3gg62i65s8sch";
};

preferLocalBuild = true;
Expand All @@ -37,7 +40,8 @@ stdenv.mkDerivation rec {
inkscape
libxml2
gnome2.glib.dev
];
]
++ stdenv.lib.optional tweetdeckSupport zip;

buildInputs = [
gdk_pixbuf
Expand All @@ -62,6 +66,7 @@ stdenv.mkDerivation rec {
(enableFeature xfceSupport "xfce")
(enableFeature gtkNextSupport "gtk_next")
(enableFeature plankSupport "plank")
(enableFeature steamSupport "airforsteam")
(enableFeature telegramSupport "telegram")
(enableFeature tweetdeckSupport "tweetdeck")
]
Expand All @@ -70,6 +75,13 @@ stdenv.mkDerivation rec {
++ (withOptional suggestionColor "suggestion_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; {
description = "A Gtk+ theme based on Material Design Refresh";
homepage = https://gitlab.com/tista500/plata-theme;
Expand Down

0 comments on commit 87783a2

Please sign in to comment.