summary refs log tree commit diff
path: root/pkgs/applications/window-managers/tabbed
diff options
context:
space:
mode:
authorRahul Gopinath <rahul@gopinath.org>2016-06-29 12:20:16 -0700
committerRahul Gopinath <rahul@gopinath.org>2016-06-29 12:36:58 -0700
commit473f864a1f819776cc1bcc9014ae10f19e88deed (patch)
treef1b1ce455b79d1493673ca69849f8b87063e0164 /pkgs/applications/window-managers/tabbed
parent0967b0d303dc6fc297c25ec4885b7dd944f3bea3 (diff)
downloadnixpkgs-473f864a1f819776cc1bcc9014ae10f19e88deed.tar
nixpkgs-473f864a1f819776cc1bcc9014ae10f19e88deed.tar.gz
nixpkgs-473f864a1f819776cc1bcc9014ae10f19e88deed.tar.bz2
nixpkgs-473f864a1f819776cc1bcc9014ae10f19e88deed.tar.lz
nixpkgs-473f864a1f819776cc1bcc9014ae10f19e88deed.tar.xz
nixpkgs-473f864a1f819776cc1bcc9014ae10f19e88deed.tar.zst
nixpkgs-473f864a1f819776cc1bcc9014ae10f19e88deed.zip
tabbed: Add configuration through config.h
Diffstat (limited to 'pkgs/applications/window-managers/tabbed')
-rw-r--r--pkgs/applications/window-managers/tabbed/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/applications/window-managers/tabbed/default.nix b/pkgs/applications/window-managers/tabbed/default.nix
index 68c72a20e67..6fefb219158 100644
--- a/pkgs/applications/window-managers/tabbed/default.nix
+++ b/pkgs/applications/window-managers/tabbed/default.nix
@@ -1,4 +1,4 @@
-{stdenv, fetchgit, xproto, libX11, enableXft, libXft}:
+{stdenv, fetchgit, xproto, libX11, enableXft, libXft, customConfig ? null }:
 
 with stdenv.lib;
 
@@ -13,6 +13,10 @@ stdenv.mkDerivation rec {
 
   patches = optional enableXft ./xft.patch;
 
+  postPatch = stdenv.lib.optionalString (customConfig != null) ''
+    cp ${builtins.toFile "config.h" customConfig} ./config.h
+  '';
+
   buildInputs = [ xproto libX11 ] ++ optional enableXft libXft;
 
   preInstall = ''
@@ -23,7 +27,7 @@ stdenv.mkDerivation rec {
     homepage = http://tools.suckless.org/tabbed;
     description = "Simple generic tabbed fronted to xembed aware applications";
     license = licenses.mit;
-    maintainers = with maintainers; [ viric ];
+    maintainers = with maintainers; [ viric vrthra ];
     platforms = platforms.linux;
   };
 }