@@ -0,0 +1,58 @@
1+{ stdenv, fetchurl
2+, lesstif
3+, libX11, libXext, libXmu, libXinerama }:
4+
5+stdenv.mkDerivation rec {
6+
7+ pname = "yeahwm";
8+ version = "0.3.5";
9+
10+ src = fetchurl {
11+ url = "http://phrat.de/${pname}_${version}.tar.gz";
12+ sha256 = "01gfzjvb40n16m2ja4238nk08k4l203y6a61cydqvf68924fjb69";
13+ };
14+
15+ buildInputs = [ lesstif libX11 libXext libXinerama libXmu ];
16+
17+ dontConfigure = true;
18+
19+ preBuild = ''
20+ makeFlagsArray+=( CC="${stdenv.cc}/bin/cc" \
21+ XROOT="${libX11}" \
22+ INCLUDES="-I${libX11.dev}/include -I${libXext.dev}/include -I${libXinerama.dev}/include -I${libXmu.dev}/include" \
23+ LDPATH="-L${libX11}/lib -L${libXext}/lib -L${libXinerama}/lib -L${libXmu}/lib" \
24+ prefix="${placeholder "out"}" )
25+ '';
26+
27+ postInstall = ''
28+ gzip -9 --stdout yeahwm.1 > yeahwm.1.gz
29+ install -m644 yeahwm.1.gz ${placeholder "out"}/share/man/man1/
30+ '';
31+
32+ meta = with stdenv.lib;{
33+ description = "An X window manager based on evilwm and aewm";
34+ longDescription = ''
35+ YeahWM is a h* window manager for X based on evilwm and aewm.
36+
37+ Features
38+ - Sloppy Focus.
39+ - BeOS-like tabbed titles, which can be repositioned.
40+ - Support for Xinerama.
41+ - Simple Appearance.
42+ - Good keyboard control.
43+ - Creative usage of the mouse.
44+ - Respects aspect size hints.
45+ - Solid resize and move operations.
46+ - Virtual Desktops.
47+ - "Magic" Screen edges for desktop switching.
48+ - Snapping to other windows and screen borders when moving windows.
49+ - Small binary size(ca. 23kb).
50+ - Little resource usage.
51+ - It's slick.
52+ '';
53+ homepage = "http://phrat.de/index.html";
54+ license = licenses.isc;
55+ maintainers = [ maintainers.AndersonTorres ];
56+ platforms = libX11.meta.platforms;
57+ };
58+}