2013-11-11 02:40:17 +01:00
|
|
|
{ stdenv, fetchurl, cmake, gperf, imagemagick, pkgconfig, lua
|
2010-03-05 10:52:53 +01:00
|
|
|
, glib, cairo, pango, imlib2, libxcb, libxdg_basedir, xcbutil
|
2011-12-31 07:14:31 +01:00
|
|
|
, xcbutilimage, xcbutilkeysyms, xcbutilwm, libpthreadstubs, libXau
|
2011-12-31 05:06:02 +01:00
|
|
|
, libXdmcp, pixman, doxygen
|
2010-03-05 10:52:53 +01:00
|
|
|
, libstartup_notification, libev, asciidoc, xmlto, dbus, docbook_xsl
|
2013-11-11 02:40:17 +01:00
|
|
|
, docbook_xml_dtd_45, libxslt, coreutils, which }:
|
2010-03-04 15:44:56 +01:00
|
|
|
|
2011-01-21 09:24:41 +01:00
|
|
|
let
|
2012-07-15 15:55:41 +02:00
|
|
|
version = "3.4.13";
|
2011-01-21 09:24:41 +01:00
|
|
|
in
|
|
|
|
|
2010-03-04 15:44:56 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2011-01-21 09:24:41 +01:00
|
|
|
name = "awesome-${version}";
|
2010-03-04 15:44:56 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-01-21 09:24:41 +01:00
|
|
|
url = "http://awesome.naquadah.org/download/awesome-${version}.tar.xz";
|
2012-07-15 15:55:41 +02:00
|
|
|
sha256 = "0jhsgb8wdzpfmdyl9fxp2w6app7l6zl8b513z3ff513nvdlxj5hr";
|
2010-03-04 15:44:56 +01:00
|
|
|
};
|
|
|
|
|
2012-01-18 21:53:01 +01:00
|
|
|
buildInputs = [ cmake gperf imagemagick pkgconfig lua glib cairo pango
|
2011-12-31 07:14:31 +01:00
|
|
|
imlib2 libxcb libxdg_basedir xcbutil xcbutilimage xcbutilkeysyms xcbutilwm
|
2011-12-31 05:06:02 +01:00
|
|
|
libstartup_notification libev libpthreadstubs libXau libXdmcp pixman doxygen
|
2013-11-11 02:40:17 +01:00
|
|
|
asciidoc xmlto dbus docbook_xsl docbook_xml_dtd_45 libxslt which ];
|
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.
|
2011-03-08 15:07:11 +01:00
|
|
|
prePatch = ''
|
2010-05-09 13:01:29 +02:00
|
|
|
# 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
|
2011-12-31 05:06:02 +01:00
|
|
|
# Russian manpages fail to be generated:
|
|
|
|
# [ 56%] Generating manpages/ru/man1/awesome.1.xml
|
|
|
|
# asciidoc: ERROR: <stdin>: line 3: name section expected
|
|
|
|
# asciidoc: FAILED: <stdin>: line 3: section title expected
|
|
|
|
# make[2]: *** [manpages/ru/man1/awesome.1.xml] Error 1
|
|
|
|
substituteInPlace CMakeLists.txt \
|
2012-07-15 15:55:41 +02:00
|
|
|
--replace "set(AWE_MAN_LANGS it es fr de ru)" \
|
|
|
|
"set(AWE_MAN_LANGS it es fr de)"
|
2010-05-09 13:01:29 +02:00
|
|
|
'';
|
2010-03-04 15:44:56 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://awesome.naquadah.org/;
|
|
|
|
description = "Highly configurable, dynamic window manager for X";
|
|
|
|
license = "GPLv2+";
|
2011-03-08 15:07:11 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2010-03-04 15:44:56 +01:00
|
|
|
};
|
|
|
|
}
|
2012-07-15 15:55:41 +02:00
|
|
|
|