tabbed: Add configuration through config.h
This commit is contained in:
parent
0967b0d303
commit
473f864a1f
@ -1,4 +1,4 @@
|
|||||||
{stdenv, fetchgit, xproto, libX11, enableXft, libXft}:
|
{stdenv, fetchgit, xproto, libX11, enableXft, libXft, customConfig ? null }:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
@ -13,6 +13,10 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patches = optional enableXft ./xft.patch;
|
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;
|
buildInputs = [ xproto libX11 ] ++ optional enableXft libXft;
|
||||||
|
|
||||||
preInstall = ''
|
preInstall = ''
|
||||||
@ -23,7 +27,7 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = http://tools.suckless.org/tabbed;
|
homepage = http://tools.suckless.org/tabbed;
|
||||||
description = "Simple generic tabbed fronted to xembed aware applications";
|
description = "Simple generic tabbed fronted to xembed aware applications";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ viric ];
|
maintainers = with maintainers; [ viric vrthra ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -14384,6 +14384,9 @@ in
|
|||||||
|
|
||||||
tabbed = callPackage ../applications/window-managers/tabbed {
|
tabbed = callPackage ../applications/window-managers/tabbed {
|
||||||
enableXft = true;
|
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 {
|
taffybar = callPackage ../applications/window-managers/taffybar {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user