about summary refs log tree commit diff
path: root/pkgs/applications/window-managers/tabbed/default.nix
blob: 5e1098e97064e150394aaa7962fc436cb1b95d59 (plain) (blame)
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
{stdenv, fetchgit, xproto, libX11, libXft, customConfig ? null, patches ? [] }:

with stdenv.lib;

stdenv.mkDerivation rec {
  name = "tabbed-20160425";

  src = fetchgit {
    url = https://git.suckless.org/tabbed;
    rev = "bc236142fa72d2f9d6b5c790d3f3a9a9168a7164";
    sha256 = "1fiv57g3jnlhnb6zrzl3n6lnpn2s9s0sd7bcv7r1nb3grwy7icri";
  };

  inherit patches;

  postPatch = stdenv.lib.optionalString (customConfig != null) ''
    cp ${builtins.toFile "config.h" customConfig} ./config.h
  '';

  buildInputs = [ xproto libX11 libXft ];

  makeFlags = [
    "PREFIX=$(out)"
  ];

  meta = {
    homepage = https://tools.suckless.org/tabbed;
    description = "Simple generic tabbed fronted to xembed aware applications";
    license = licenses.mit;
    maintainers = with maintainers; [ viric vrthra ];
    platforms = platforms.linux;
  };
}