1{
2 lib,
3 stdenv,
4 fetchgit,
5 xorgproto,
6 libX11,
7 libXft,
8 customConfig ? null,
9 patches ? [ ],
10}:
11
12stdenv.mkDerivation (finalAttrs: {
13 pname = "tabbed";
14 version = "0.8";
15
16 src = fetchgit {
17 url = "https://git.suckless.org/tabbed";
18 rev = finalAttrs.version;
19 hash = "sha256-KpMWBnnoF4AGRKrG30NQsVt0CFfJXVdlXLLag0Dq0sU=";
20 };
21
22 inherit patches;
23
24 postPatch = lib.optionalString (customConfig != null) ''
25 cp ${builtins.toFile "config.h" customConfig} ./config.h
26 '';
27
28 buildInputs = [
29 xorgproto
30 libX11
31 libXft
32 ];
33
34 makeFlags = [ "CC:=$(CC)" ];
35
36 installFlags = [ "PREFIX=$(out)" ];
37
38 meta = with lib; {
39 homepage = "https://tools.suckless.org/tabbed";
40 description = "Simple generic tabbed fronted to xembed aware applications";
41 license = licenses.mit;
42 maintainers = [ ];
43 platforms = platforms.linux;
44 };
45})