@@ -0,0 +1,24 @@
1+{ stdenv, fetchFromGitHub, libX11, libXinerama, libXrandr, libXft, yacc, pkgconfig }:
2+
3+stdenv.mkDerivation rec {
4+ name = "cwm-5.6";
5+
6+ src = fetchFromGitHub {
7+ owner = "chneukirchen";
8+ repo = "cwm";
9+ rev = "b7a8c11750d11721a897fdb8442d52f15e7a24a0";
10+ sha256 = "0a0x8rgqif4kxy7hj70hck7jma6c8jy4428ybl8fz9qxgxh014ml";
11+ };
12+
13+ buildInputs = [ libX11 libXinerama libXrandr libXft yacc pkgconfig ];
14+
15+ prePatch = ''sed -i "s@/usr/local@$out@" Makefile'';
16+
17+ meta = with stdenv.lib; {
18+ description = "A lightweight and efficient window manager for X11";
19+ homepage = https://github.com/chneukirchen/cwm;
20+ maintainers = [];
21+ license = licenses.isc;
22+ platforms = platforms.linux;
23+ };
24+}