Adding 'awesome' (and two packages it was depending on)

svn path=/nixpkgs/trunk/; revision=20385
This commit is contained in:
Lluís Batlle i Rossell 2010-03-04 14:44:56 +00:00
parent 9c75629a31
commit 22065c11d9
4 changed files with 84 additions and 1 deletions

View File

@ -0,0 +1,30 @@
{stdenv, fetchurl, xz, cmake, gperf, imagemagick, pkgconfig, lua
, glib, cairo, pango, imlib2, libxcb, libxdg_basedir, xcbutil,
libstartup_notification, libev}:
stdenv.mkDerivation rec {
name = "awesome-3.4.4";
src = fetchurl {
url = http://awesome.naquadah.org/download/awesome-3.4.4.tar.xz;
sha256 = "1d1ida8mznn02pzj2kfh6m59mwrz8vk1cy66npgyfpzyrv8a558y";
};
buildInputs = [ xz cmake gperf imagemagick pkgconfig lua glib cairo pango
imlib2 libxcb libxdg_basedir xcbutil libstartup_notification libev ];
# 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+";
};
}

View File

@ -0,0 +1,15 @@
{stdenv, fetchurl}:
stdenv.mkDerivation rec {
name = "libxdg-basedir-1.0.2";
src = fetchurl {
url = "http://n.ethz.ch/student/nevillm/download/libxdg-basedir/${name}.tar.gz";
sha256 = "0fibbzba228gdk05lfi8cgfrsp80a2gnjbwka0pzpkig0fz8pp9i";
};
meta = {
homepage = http://n.ethz.ch/student/nevillm/download/libxdg-basedir/;
description = "Implementation of the XDG Base Directory specification";
license = "BSD";
};
}

View File

@ -0,0 +1,20 @@
{stdenv, fetchurl, libX11, libxcb, pkgconfig, xcbutil}:
let
version = "0.10";
in
stdenv.mkDerivation {
name = "libstartup-notification-${version}";
src = fetchurl {
url = "http://www.freedesktop.org/software/startup-notification/releases/startup-notification-${version}.tar.gz";
sha256 = "0nalaay0yj3gq85insp9l31hsv5zp390m4nn37y235v151ffpfv4";
};
buildInputs = [ libX11 libxcb pkgconfig xcbutil ];
meta = {
homepage = http://www.freedesktop.org/software/startup-notification;
description = "Application startup notification and feedback library";
license = "BSD";
};
}

View File

@ -3363,7 +3363,7 @@ let
inherit fetchurl stdenv bison;
};
cairo = import ../development/libraries/cairo {
cairo = makeOverridable (import ../development/libraries/cairo) {
inherit fetchurl stdenv pkgconfig x11 fontconfig freetype zlib libpng;
inherit (xlibs) pixman libxcb xcbutil;
};
@ -4414,6 +4414,11 @@ let
libssh = import ../development/libraries/libssh {
inherit stdenv fetchurl cmake zlib openssl;
};
libstartup_notification = import ../development/libraries/startup-notification {
inherit fetchurl stdenv pkgconfig;
inherit (xlibs) libX11 libxcb xcbutil;
};
libtasn1 = import ../development/libraries/libtasn1 {
inherit fetchurl stdenv;
@ -4498,6 +4503,10 @@ let
inherit fetchurl stdenv;
};
libxdg_basedir = import ../development/libraries/libxdg-basedir {
inherit fetchurl stdenv;
};
libxklavier = import ../development/libraries/libxklavier {
inherit fetchurl stdenv xkeyboard_config pkgconfig libxml2 isocodes glib;
inherit (xorg) libX11 libICE libXi libxkbfile;
@ -6721,6 +6730,15 @@ let
inherit (xlibs) libXv pixman libpthreadstubs libXau libXdmcp;
};
awesome = import ../applications/window-managers/awesome {
inherit fetchurl stdenv xz cmake gperf imagemagick pkgconfig imlib2 libxdg_basedir
libstartup_notification libev;
inherit (gtkLibs) glib pango;
inherit (xorg) libxcb xcbutil;
lua = lua5;
cairo = cairo.override { xcbSupport = true; };
};
batik = import ../applications/graphics/batik {
inherit fetchurl stdenv unzip;
};