summary refs log tree commit diff
path: root/pkgs/applications/window-managers/2bwm/default.nix
blob: 4b61fe3d7e6c49e6bf924a5a730e2c05f435462c (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
{ stdenv, fetchFromGitHub, patches
, libxcb, xcbutilkeysyms, xcbutilwm
, libX11, xcbutil, xcbutilxrm }:

stdenv.mkDerivation rec {
  version = "0.2";
  pname = "2bwm";

  src = fetchFromGitHub {
    owner  = "venam";
    repo   = "2bwm";
    rev    = "v${version}";
    sha256 = "1la1ixpm5knsj2gvdcmxzj1jfbzxvhmgzps4f5kbvx5047xc6ici";
  };

  # Allow users set their own list of patches
  inherit patches;

  buildInputs = [ libxcb xcbutilkeysyms xcbutilwm libX11 xcbutil xcbutilxrm ];

  installPhase = "make install DESTDIR=$out PREFIX=\"\"";

  meta = with stdenv.lib; {
    homepage = https://github.com/venam/2bwm;
    description = "A fast floating WM written over the XCB library and derived from mcwm";
    license = licenses.mit;
    maintainers =  [ maintainers.sternenseemann ];
    platforms = platforms.unix;
  };
}