1{
2 lib,
3 stdenv,
4 fetchurl,
5 libX11,
6 libXext,
7 libXrandr,
8 libXrender,
9 xorgproto,
10 patches ? [ ],
11}:
12
13stdenv.mkDerivation rec {
14 pname = "evilwm";
15 version = "1.4.3";
16
17 src = fetchurl {
18 url = "http://www.6809.org.uk/evilwm/evilwm-${version}.tar.gz";
19 sha256 = "sha256-1ZRbILEskdskEvrA29o/ucPsjeu44bEJg4mSsrG75dQ=";
20 };
21
22 buildInputs = [
23 libX11
24 libXext
25 libXrandr
26 libXrender
27 xorgproto
28 ];
29
30 postPatch = ''
31 substituteInPlace ./Makefile \
32 --replace /usr $out \
33 --replace "CC = gcc" "#CC = gcc"
34 '';
35
36 # Allow users set their own list of patches
37 inherit patches;
38
39 meta = with lib; {
40 homepage = "http://www.6809.org.uk/evilwm/";
41 description = "Minimalist window manager for the X Window System";
42 license = {
43 shortName = "evilwm";
44 fullName = "Custom, inherited from aewm and 9wm";
45 url = "http://www.6809.org.uk/evilwm/";
46 free = true;
47 }; # like BSD/MIT, but Share-Alike'y; See README.
48 maintainers = with maintainers; [ amiloradovsky ];
49 platforms = platforms.all;
50 mainProgram = "evilwm";
51 };
52}