@@ -1,55 +0,0 @@
1−{ stdenv, fetchurl, cmake, gperf, imagemagick, pkgconfig, lua
2−, glib, cairo, pango, imlib2, libxcb, libxdg_basedir, xcbutil
3−, xcbutilimage, xcbutilkeysyms, xcbutilwm, libpthreadstubs, libXau
4−, libXdmcp, pixman, doxygen
5−, libstartup_notification, libev, asciidoc, xmlto, dbus, docbook_xsl
6−, docbook_xml_dtd_45, libxslt, coreutils, which }:
7−
8−let
9− version = "3.4.13";
10−in
11−
12−stdenv.mkDerivation rec {
13− name = "awesome-${version}";
14−
15− src = fetchurl {
16− url = "http://awesome.naquadah.org/download/awesome-${version}.tar.xz";
17− sha256 = "0jhsgb8wdzpfmdyl9fxp2w6app7l6zl8b513z3ff513nvdlxj5hr";
18− };
19−
20− buildInputs = [ cmake gperf imagemagick pkgconfig lua glib cairo pango
21− imlib2 libxcb libxdg_basedir xcbutil xcbutilimage xcbutilkeysyms xcbutilwm
22− libstartup_notification libev libpthreadstubs libXau libXdmcp pixman doxygen
23− asciidoc xmlto dbus docbook_xsl docbook_xml_dtd_45 libxslt which ];
24−
25− # We use coreutils for 'env', that will allow then finding 'bash' or 'zsh' in
26− # the awesome lua code. I prefered that instead of adding 'bash' or 'zsh' as
27− # dependencies.
28− prePatch = ''
29− # Fix the tab completion (supporting bash or zsh)
30− sed s,/usr/bin/env,${coreutils}/bin/env, -i lib/awful/completion.lua.in
31− # Remove the 'root' PATH override (I don't know why they have that)
32− sed /WHOAMI/d -i utils/awsetbg
33− # Russian manpages fail to be generated:
34− # [ 56%] Generating manpages/ru/man1/awesome.1.xml
35− # asciidoc: ERROR: <stdin>: line 3: name section expected
36− # asciidoc: FAILED: <stdin>: line 3: section title expected
37− # make[2]: *** [manpages/ru/man1/awesome.1.xml] Error 1
38− substituteInPlace CMakeLists.txt \
39− --replace "set(AWE_MAN_LANGS it es fr de ru)" \
40− "set(AWE_MAN_LANGS it es fr de)"
41− '';
42−
43− meta = {
44− homepage = http://awesome.naquadah.org/;
45− description = "Highly configurable, dynamic window manager for X";
46− license = stdenv.lib.licenses.gpl2Plus;
47− maintainers = with stdenv.lib.maintainers; [viric];
48− platforms = with stdenv.lib.platforms; linux;
49− };
50−
51− passthru = {
52− inherit lua;
53− };
54−
55−}