summary refs log tree commit diff
path: root/pkgs/data/themes/plata
diff options
context:
space:
mode:
authorTad Fisher <tadfisher@gmail.com>2018-12-16 20:17:02 -0800
committerTad Fisher <tadfisher@gmail.com>2018-12-17 11:43:50 -0800
commitdd99978853c9e18ad432efe097a291ea10c6ac1e (patch)
treef6bcb5f6b9cb7fe6a1f8a0b782d0e05bd7682799 /pkgs/data/themes/plata
parentcc1d13ae0f0d7c2bb6d6be9e64349a628ca0512f (diff)
downloadnixpkgs-dd99978853c9e18ad432efe097a291ea10c6ac1e.tar
nixpkgs-dd99978853c9e18ad432efe097a291ea10c6ac1e.tar.gz
nixpkgs-dd99978853c9e18ad432efe097a291ea10c6ac1e.tar.bz2
nixpkgs-dd99978853c9e18ad432efe097a291ea10c6ac1e.tar.lz
nixpkgs-dd99978853c9e18ad432efe097a291ea10c6ac1e.tar.xz
nixpkgs-dd99978853c9e18ad432efe097a291ea10c6ac1e.tar.zst
nixpkgs-dd99978853c9e18ad432efe097a291ea10c6ac1e.zip
plata-theme: init at 0.4.9
Diffstat (limited to 'pkgs/data/themes/plata')
-rw-r--r--pkgs/data/themes/plata/default.nix80
1 files changed, 80 insertions, 0 deletions
diff --git a/pkgs/data/themes/plata/default.nix b/pkgs/data/themes/plata/default.nix
new file mode 100644
index 00000000000..d839d4a3dd8
--- /dev/null
+++ b/pkgs/data/themes/plata/default.nix
@@ -0,0 +1,80 @@
+{ stdenv, fetchFromGitLab, autoreconfHook, pkgconfig, parallel
+, sassc, inkscape, libxml2, gnome2, gdk_pixbuf, librsvg, gtk-engine-murrine
+, cinnamonSupport ? true
+, gnomeFlashbackSupport ? true
+, gnomeShellSupport ? true
+, mateSupport ? true
+, openboxSupport ? true
+, xfceSupport ? true
+, gtkNextSupport ? false
+, plankSupport ? false
+, telegramSupport ? false
+, tweetdeckSupport ? false
+, 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 {
+  name = "plata-theme-${version}";
+  version = "0.4.9";
+
+  src = fetchFromGitLab {
+    owner = "tista500";
+    repo = "plata-theme";
+    rev = version;
+    sha256 = "0kj04nj265rgkbbhzhz9f7q6z5yr1dxmcrnq1b5ldha3xqrq2pv9";
+  };
+
+  preferLocalBuild = true;
+
+  nativeBuildInputs = [
+    autoreconfHook
+    pkgconfig
+    parallel
+    sassc
+    inkscape
+    libxml2
+    gnome2.glib.dev
+  ];
+
+  buildInputs = [
+    gdk_pixbuf
+    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 mateSupport "mate")
+      (enableFeature openboxSupport "openbox")
+      (enableFeature xfceSupport "xfce")
+      (enableFeature gtkNextSupport "gtk_next")
+      (enableFeature plankSupport "plank")
+      (enableFeature telegramSupport "telegram")
+      (enableFeature tweetdeckSupport "tweetdeck")
+    ]
+    ++ (withOptional selectionColor "selection_color")
+    ++ (withOptional accentColor "accent_color")
+    ++ (withOptional suggestionColor "suggestion_color")
+    ++ (withOptional destructionColor "destruction_color");
+
+  meta = with stdenv.lib; {
+    description = "A Gtk+ theme based on Material Design Refresh";
+    homepage = https://gitlab.com/tista500/plata-theme;
+    license = with licenses; [ gpl2 cc-by-sa-40 ];
+    platforms = platforms.linux;
+    maintainers = [ maintainers.tadfisher ];
+  };
+}