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