2010-03-04 15:44:56 +01:00
|
|
|
{stdenv, fetchurl, xz, cmake, gperf, imagemagick, pkgconfig, lua
|
2010-03-05 10:52:53 +01:00
|
|
|
, glib, cairo, pango, imlib2, libxcb, libxdg_basedir, xcbutil
|
|
|
|
, libstartup_notification, libev, asciidoc, xmlto, dbus, docbook_xsl
|
2010-05-09 13:01:29 +02:00
|
|
|
, docbook_xml_dtd_45, libxslt, coreutils}:
|
2010-03-04 15:44:56 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-05-13 14:18:09 +02:00
|
|
|
name = "awesome-3.4.5";
|
2010-03-04 15:44:56 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-05-13 14:18:09 +02:00
|
|
|
url = http://awesome.naquadah.org/download/awesome-3.4.5.tar.xz;
|
|
|
|
sha256 = "124g6k4n2yf9shw3ig9lj1jdwiysfbj13mnjd38k22hqbj3yhnbi";
|
2010-03-04 15:44:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ xz cmake gperf imagemagick pkgconfig lua glib cairo pango
|
2010-03-05 10:52:53 +01:00
|
|
|
imlib2 libxcb libxdg_basedir xcbutil libstartup_notification libev
|
|
|
|
asciidoc xmlto dbus docbook_xsl docbook_xml_dtd_45 libxslt ];
|
2010-03-04 15:44:56 +01:00
|
|
|
|
2010-05-09 13:01:29 +02:00
|
|
|
# We use coreutils for 'env', that will allow then finding 'bash' or 'zsh' in
|
|
|
|
# the awesome lua code. I prefered that instead of adding 'bash' or 'zsh' as
|
|
|
|
# dependencies.
|
|
|
|
patchPhase = ''
|
|
|
|
# Fix the tab completion (supporting bash or zsh)
|
|
|
|
sed s,/usr/bin/env,${coreutils}/bin/env, -i lib/awful/completion.lua.in
|
|
|
|
# Remove the 'root' PATH override (I don't know why they have that)
|
|
|
|
sed /WHOAMI/d -i utils/awsetbg
|
|
|
|
'';
|
|
|
|
|
2010-03-04 15:44:56 +01:00
|
|
|
# Somehow libev does not get into the rpath, although it should.
|
|
|
|
# Something may be wrong in the gcc wrapper.
|
|
|
|
preBuild = ''
|
|
|
|
export NIX_LDFLAGS_BEFORE="-lev";
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Cmake fails strangely at finding lua. Looks to me like a cmake 2.8 error.
|
|
|
|
cmakeFlags = [ "-DLUA_LIBRARIES=${lua}/lib/liblua.a" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://awesome.naquadah.org/;
|
|
|
|
description = "Highly configurable, dynamic window manager for X";
|
|
|
|
license = "GPLv2+";
|
|
|
|
};
|
|
|
|
}
|