134c00b471
svn path=/nixpkgs/trunk/; revision=26207
50 lines
1.7 KiB
Nix
50 lines
1.7 KiB
Nix
{stdenv, fetchurl, xz, cmake, gperf, imagemagick, pkgconfig, lua
|
|
, glib, cairo, pango, imlib2, libxcb, libxdg_basedir, xcbutil
|
|
, libstartup_notification, libev, asciidoc, xmlto, dbus, docbook_xsl
|
|
, docbook_xml_dtd_45, libxslt, coreutils}:
|
|
|
|
let
|
|
version = "3.4.9";
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "awesome-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://awesome.naquadah.org/download/awesome-${version}.tar.xz";
|
|
sha256 = "0382v482904xv295l0gvhwzc64b7631miiv8wyq7jxmwqf2vfbp7";
|
|
};
|
|
|
|
buildInputs = [ xz cmake gperf imagemagick pkgconfig lua glib cairo pango
|
|
imlib2 libxcb libxdg_basedir xcbutil libstartup_notification libev
|
|
asciidoc xmlto dbus docbook_xsl docbook_xml_dtd_45 libxslt ];
|
|
|
|
# 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.
|
|
prePatch = ''
|
|
# 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
|
|
'';
|
|
|
|
patches = [ ./cmake284.patch ];
|
|
|
|
# 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+";
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
};
|
|
}
|