-
Notifications
You must be signed in to change notification settings - Fork 0
/
tabbed.nix
44 lines (38 loc) · 1014 Bytes
/
tabbed.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ lib
, gcc14Stdenv
, gitignoreSource
, autoPatchelfHook
, xorgproto
, libX11
, libXft
, libbsd
, zeromq
, customConfig ? null
, buildInstrumentedCoverage ? false
, patches ? []
, binutils
, gnugrep
}:
gcc14Stdenv.mkDerivation {
name = "tabbed-20180309-patched" + (if buildInstrumentedCoverage then "-instrumented" else "");
src = gitignoreSource [] ./.;
inherit patches;
postPatch = lib.optionalString (customConfig != null)
''
cp ${builtins.toFile "config.h" customConfig} ./config.h
'';
nativeBuildInputs = [ autoPatchelfHook ];
buildInputs = [ xorgproto libX11 libXft libbsd zeromq ];
makeFlags = [
"PREFIX=$(out)"
] ++ lib.optional buildInstrumentedCoverage [
"BUILD_INSTRUMENTED_COVERAGE=1"
];
meta = with lib; {
homepage = "https://tools.suckless.org/tabbed";
description = "Simple generic tabbed fronted to xembed aware applications";
license = licenses.mit;
maintainers = with maintainers; [ shamilton ];
platforms = platforms.linux;
};
}