about summary refs log tree commit diff
path: root/pkgs/data/themes
diff options
context:
space:
mode:
authorRenaud <c0bw3b@users.noreply.github.com>2019-05-23 01:19:46 +0200
committerGitHub <noreply@github.com>2019-05-23 01:19:46 +0200
commitf6fbff85ccbdb18db9ef4cfa96a28e598f811500 (patch)
treef7b8a73728e49e3158612c0a8f71f43c69fddd8c /pkgs/data/themes
parent241530b137f4d91564a1503aeace431dae690c3b (diff)
parent87783a2900ba49a120730fc85fea7f268c38e528 (diff)
downloadnixlib-f6fbff85ccbdb18db9ef4cfa96a28e598f811500.tar
nixlib-f6fbff85ccbdb18db9ef4cfa96a28e598f811500.tar.gz
nixlib-f6fbff85ccbdb18db9ef4cfa96a28e598f811500.tar.bz2
nixlib-f6fbff85ccbdb18db9ef4cfa96a28e598f811500.tar.lz
nixlib-f6fbff85ccbdb18db9ef4cfa96a28e598f811500.tar.xz
nixlib-f6fbff85ccbdb18db9ef4cfa96a28e598f811500.tar.zst
nixlib-f6fbff85ccbdb18db9ef4cfa96a28e598f811500.zip
Merge pull request #61844 from tadfisher/plata-theme
plata-theme: 0.7.6 -> 0.8.0
Diffstat (limited to 'pkgs/data/themes')
-rw-r--r--pkgs/data/themes/plata/default.nix20
1 files changed, 16 insertions, 4 deletions
diff --git a/pkgs/data/themes/plata/default.nix b/pkgs/data/themes/plata/default.nix
index b43a6e35ab25..3b80c60044bd 100644
--- a/pkgs/data/themes/plata/default.nix
+++ b/pkgs/data/themes/plata/default.nix
@@ -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;
@@ -37,7 +40,8 @@ stdenv.mkDerivation rec {
     inkscape
     libxml2
     gnome2.glib.dev
-  ];
+  ]
+  ++ stdenv.lib.optional tweetdeckSupport zip;
 
   buildInputs = [
     gdk_pixbuf
@@ -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")
     ]
@@ -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;