2016-06-29 22:20:16 +03:00
|
|
|
{stdenv, fetchgit, xproto, libX11, enableXft, libXft, customConfig ? null }:
|
2015-06-19 20:58:50 +03:00
|
|
|
|
|
|
|
with stdenv.lib;
|
2012-03-26 00:10:25 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-06-29 22:25:50 +03:00
|
|
|
name = "tabbed-20160425";
|
2015-06-19 20:58:50 +03:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = http://git.suckless.org/tabbed;
|
2016-06-29 22:25:50 +03:00
|
|
|
rev = "bc236142fa72d2f9d6b5c790d3f3a9a9168a7164";
|
|
|
|
sha256 = "1fiv57g3jnlhnb6zrzl3n6lnpn2s9s0sd7bcv7r1nb3grwy7icri";
|
2012-03-26 00:10:25 +04:00
|
|
|
};
|
|
|
|
|
2016-06-29 22:20:16 +03:00
|
|
|
postPatch = stdenv.lib.optionalString (customConfig != null) ''
|
|
|
|
cp ${builtins.toFile "config.h" customConfig} ./config.h
|
|
|
|
'';
|
|
|
|
|
2016-06-29 22:25:50 +03:00
|
|
|
buildInputs = [ xproto libX11 libXft ];
|
2012-03-26 00:10:25 +04:00
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
export makeFlags="PREFIX=$out"
|
|
|
|
'';
|
2015-06-19 20:58:50 +03:00
|
|
|
|
|
|
|
meta = {
|
2012-03-26 00:10:25 +04:00
|
|
|
homepage = http://tools.suckless.org/tabbed;
|
|
|
|
description = "Simple generic tabbed fronted to xembed aware applications";
|
2015-05-28 20:20:29 +03:00
|
|
|
license = licenses.mit;
|
2016-06-29 22:20:16 +03:00
|
|
|
maintainers = with maintainers; [ viric vrthra ];
|
2015-11-17 23:29:29 +03:00
|
|
|
platforms = platforms.linux;
|
2012-03-26 00:10:25 +04:00
|
|
|
};
|
|
|
|
}
|