2021-01-15 13:21:58 +00:00
|
|
|
{lib, stdenv, fetchgit, xorgproto, libX11, libXft, customConfig ? null, patches ? [] }:
|
2015-06-19 17:58:50 +00:00
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
with lib;
|
2012-03-25 20:10:25 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2018-11-30 03:03:33 +00:00
|
|
|
name = "tabbed-20180310";
|
2015-06-19 17:58:50 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "https://git.suckless.org/tabbed";
|
2018-11-30 03:03:33 +00:00
|
|
|
rev = "b5f9ec647aae2d9a1d3bd586eb7523a4e0a329a3";
|
|
|
|
sha256 = "0frj2yjaf0mfjwgyfappksfir52mx2xxd3cdg5533m5d88vbmxss";
|
2012-03-25 20:10:25 +00:00
|
|
|
};
|
|
|
|
|
2016-06-29 19:28:13 +00:00
|
|
|
inherit patches;
|
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
postPatch = lib.optionalString (customConfig != null) ''
|
2016-06-29 19:20:16 +00:00
|
|
|
cp ${builtins.toFile "config.h" customConfig} ./config.h
|
|
|
|
'';
|
|
|
|
|
2018-12-31 03:40:47 +00:00
|
|
|
buildInputs = [ xorgproto libX11 libXft ];
|
2012-03-25 20:10:25 +00:00
|
|
|
|
2016-06-29 19:28:13 +00:00
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
];
|
2015-06-19 17:58:50 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://tools.suckless.org/tabbed";
|
2012-03-25 20:10:25 +00:00
|
|
|
description = "Simple generic tabbed fronted to xembed aware applications";
|
2015-05-28 17:20:29 +00:00
|
|
|
license = licenses.mit;
|
2018-07-22 19:50:19 +00:00
|
|
|
maintainers = with maintainers; [ vrthra ];
|
2015-11-17 20:29:29 +00:00
|
|
|
platforms = platforms.linux;
|
2012-03-25 20:10:25 +00:00
|
|
|
};
|
|
|
|
}
|