From 2c44e0410c716f174011fae8718d1328f2fa6a66 Mon Sep 17 00:00:00 2001 From: Rahul Gopinath Date: Wed, 29 Jun 2016 12:28:13 -0700 Subject: [PATCH] tabbed: add patch support Suckless tools encourage patching, along with config.h modification. Allow users to provide their own patches. --- pkgs/applications/window-managers/tabbed/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/window-managers/tabbed/default.nix b/pkgs/applications/window-managers/tabbed/default.nix index 80c2a5705a75..279ba68eae8b 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, customConfig ? null }: +{stdenv, fetchgit, xproto, libX11, libXft, customConfig ? null, patches ? [] }: with stdenv.lib; @@ -11,15 +11,17 @@ stdenv.mkDerivation rec { sha256 = "1fiv57g3jnlhnb6zrzl3n6lnpn2s9s0sd7bcv7r1nb3grwy7icri"; }; + inherit patches; + postPatch = stdenv.lib.optionalString (customConfig != null) '' cp ${builtins.toFile "config.h" customConfig} ./config.h ''; buildInputs = [ xproto libX11 libXft ]; - preInstall = '' - export makeFlags="PREFIX=$out" - ''; + makeFlags = [ + "PREFIX=$(out)" + ]; meta = { homepage = http://tools.suckless.org/tabbed;