2013-11-13 02:34:49 +00:00
|
|
|
{ stdenv, fetchurl, lua, cairo, cmake, imagemagick, pkgconfig, gdk_pixbuf
|
|
|
|
, xlibs, libstartup_notification, libxdg_basedir, libpthreadstubs
|
|
|
|
, xcb-util-cursor, lgi, makeWrapper, pango, gobjectIntrospection, unclutter
|
|
|
|
, compton, procps, iproute, coreutils, curl, alsaUtils, findutils, rxvt_unicode
|
|
|
|
, which, dbus, nettools, git, asciidoc, doxygen }:
|
2010-03-04 14:44:56 +00:00
|
|
|
|
2011-01-21 08:24:41 +00:00
|
|
|
let
|
2014-05-14 19:25:26 +01:00
|
|
|
version = "3.5.5";
|
2011-01-21 08:24:41 +00:00
|
|
|
in
|
|
|
|
|
2010-03-04 14:44:56 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2011-01-21 08:24:41 +00:00
|
|
|
name = "awesome-${version}";
|
2010-03-04 14:44:56 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-11-13 02:34:49 +00:00
|
|
|
url = "http://awesome.naquadah.org/download/awesome-${version}.tar.xz";
|
2014-05-14 19:25:26 +01:00
|
|
|
sha256 = "0iwd4pjvq0akm9dbipbl4m4fm24m017l06arasr445v2qkbxnc5z";
|
2010-03-04 14:44:56 +00:00
|
|
|
};
|
|
|
|
|
2013-11-13 02:34:49 +00:00
|
|
|
meta = with stdenv.lib; {
|
2010-03-04 14:44:56 +00:00
|
|
|
description = "Highly configurable, dynamic window manager for X";
|
2013-11-13 02:34:49 +00:00
|
|
|
homepage = http://awesome.naquadah.org/;
|
|
|
|
license = "GPLv2+";
|
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
|
|
platforms = platforms.linux;
|
2010-03-04 14:44:56 +00:00
|
|
|
};
|
2013-11-13 02:34:49 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
asciidoc
|
|
|
|
cairo
|
|
|
|
cmake
|
|
|
|
dbus
|
|
|
|
doxygen
|
|
|
|
gdk_pixbuf
|
|
|
|
git
|
|
|
|
imagemagick
|
|
|
|
lgi
|
|
|
|
libpthreadstubs
|
|
|
|
libstartup_notification
|
|
|
|
libxdg_basedir
|
|
|
|
lua
|
|
|
|
makeWrapper
|
|
|
|
nettools
|
|
|
|
pango
|
|
|
|
pkgconfig
|
|
|
|
xcb-util-cursor
|
|
|
|
xlibs.libXau
|
|
|
|
xlibs.libXdmcp
|
|
|
|
xlibs.libxcb
|
2014-05-14 19:25:26 +01:00
|
|
|
xlibs.libxshmfence
|
2013-11-13 02:34:49 +00:00
|
|
|
xlibs.xcbutil
|
|
|
|
xlibs.xcbutilimage
|
|
|
|
xlibs.xcbutilkeysyms
|
|
|
|
xlibs.xcbutilrenderutil
|
|
|
|
xlibs.xcbutilwm
|
|
|
|
];
|
2012-07-15 14:55:41 +01:00
|
|
|
|
2014-05-14 19:25:26 +01:00
|
|
|
LD_LIBRARY_PATH = "${cairo}/lib:${pango}/lib:${gobjectIntrospection}/lib";
|
|
|
|
GI_TYPELIB_PATH = "${pango}/lib/girepository-1.0";
|
2013-11-13 02:34:49 +00:00
|
|
|
LUA_CPATH = "${lgi}/lib/lua/5.1/?.so";
|
|
|
|
LUA_PATH = "${lgi}/share/lua/5.1/?.lua;${lgi}/share/lua/5.1/lgi/?.lua";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/awesome \
|
|
|
|
--set LUA_CPATH '"${lgi}/lib/lua/5.1/?.so"' \
|
|
|
|
--set LUA_PATH '"${lgi}/share/lua/5.1/?.lua;${lgi}/share/lua/5.1/lgi/?.lua"' \
|
|
|
|
--set GI_TYPELIB_PATH "${pango}/lib/girepository-1.0" \
|
2014-05-14 19:25:26 +01:00
|
|
|
--prefix LD_LIBRARY_PATH : "${cairo}/lib:${pango}/lib:${gobjectIntrospection}/lib" \
|
2013-11-13 02:34:49 +00:00
|
|
|
--prefix PATH : "${compton}/bin:${unclutter}/bin:${procps}/bin:${iproute}/sbin:${coreutils}/bin:${curl}/bin:${alsaUtils}/bin:${findutils}/bin:${rxvt_unicode}/bin"
|
|
|
|
|
|
|
|
wrapProgram $out/bin/awesome-client \
|
|
|
|
--prefix PATH : "${which}/bin"
|
|
|
|
'';
|
|
|
|
}
|