tabbed: Add configuration through config.h

This commit is contained in:
Rahul Gopinath 2016-06-29 12:20:16 -07:00
parent 0967b0d303
commit 473f864a1f
2 changed files with 9 additions and 2 deletions

View File

@ -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;
};
}

View File

@ -14384,6 +14384,9 @@ in
tabbed = callPackage ../applications/window-managers/tabbed {
enableXft = true;
# if you prefer a custom config, write the config.h in tabbed.config.h
# and enable
# customConfig = builtins.readFile ./tabbed.config.h;
};
taffybar = callPackage ../applications/window-managers/taffybar {