diff options
author | Rahul Gopinath <rahul@gopinath.org> | 2016-06-29 12:20:16 -0700 |
---|---|---|
committer | Rahul Gopinath <rahul@gopinath.org> | 2016-06-29 12:36:58 -0700 |
commit | 473f864a1f819776cc1bcc9014ae10f19e88deed (patch) | |
tree | f1b1ce455b79d1493673ca69849f8b87063e0164 /pkgs/applications/window-managers/tabbed | |
parent | 0967b0d303dc6fc297c25ec4885b7dd944f3bea3 (diff) | |
download | nixpkgs-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.nix | 8 |
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; }; } |