2014-12-17 14:03:25 +00:00
|
|
|
{ stdenv, fetchurl, luaPackages, cairo, cmake, imagemagick, pkgconfig, gdk_pixbuf
|
2015-09-15 10:26:18 +01:00
|
|
|
, xorg, libstartup_notification, libxdg_basedir, libpthreadstubs
|
2014-12-17 14:03:25 +00:00
|
|
|
, xcb-util-cursor, makeWrapper, pango, gobjectIntrospection, unclutter
|
2015-03-05 23:04:46 +00:00
|
|
|
, compton, procps, iproute, coreutils, curl, alsaUtils, findutils, xterm
|
2015-03-29 12:07:51 +01:00
|
|
|
, which, dbus, nettools, git, asciidoc, doxygen
|
2016-03-27 16:14:46 +01:00
|
|
|
, xmlto, docbook_xml_dtd_45, docbook_xsl, findXMLCatalogs
|
2015-03-29 12:07:51 +01:00
|
|
|
}:
|
2010-03-04 14:44:56 +00:00
|
|
|
|
2011-01-21 08:24:41 +00:00
|
|
|
let
|
2016-03-09 20:50:28 +00:00
|
|
|
version = "3.5.9";
|
2014-12-17 14:03:25 +00:00
|
|
|
in with luaPackages;
|
2011-01-21 08:24:41 +00:00
|
|
|
|
2010-03-04 14:44:56 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2011-01-21 08:24:41 +00:00
|
|
|
name = "awesome-${version}";
|
2015-03-05 22:56:32 +00:00
|
|
|
|
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";
|
2016-03-09 20:50:28 +00:00
|
|
|
sha256 = "0kynair1ykr74b39a4gcm2y24viial64337cf26nhlc7azjbby67";
|
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/;
|
2015-05-28 18:20:29 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2013-11-13 02:34:49 +00:00
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
|
|
platforms = platforms.linux;
|
2010-03-04 14:44:56 +00:00
|
|
|
};
|
2015-03-05 22:56:32 +00:00
|
|
|
|
2016-03-27 16:14:46 +01:00
|
|
|
nativeBuildInputs = [
|
2013-11-13 02:34:49 +00:00
|
|
|
asciidoc
|
|
|
|
cmake
|
|
|
|
doxygen
|
2016-03-27 16:14:46 +01:00
|
|
|
imagemagick
|
|
|
|
makeWrapper
|
|
|
|
pkgconfig
|
|
|
|
xmlto docbook_xml_dtd_45 docbook_xsl findXMLCatalogs
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
dbus
|
2013-11-13 02:34:49 +00:00
|
|
|
gdk_pixbuf
|
2014-12-17 14:03:25 +00:00
|
|
|
gobjectIntrospection
|
2013-11-13 02:34:49 +00:00
|
|
|
git
|
|
|
|
lgi
|
|
|
|
libpthreadstubs
|
|
|
|
libstartup_notification
|
|
|
|
libxdg_basedir
|
|
|
|
lua
|
|
|
|
nettools
|
|
|
|
pango
|
|
|
|
xcb-util-cursor
|
2015-09-15 10:26:18 +01:00
|
|
|
xorg.libXau
|
|
|
|
xorg.libXdmcp
|
|
|
|
xorg.libxcb
|
|
|
|
xorg.libxshmfence
|
|
|
|
xorg.xcbutil
|
|
|
|
xorg.xcbutilimage
|
|
|
|
xorg.xcbutilkeysyms
|
|
|
|
xorg.xcbutilrenderutil
|
|
|
|
xorg.xcbutilwm
|
2013-11-13 02:34:49 +00:00
|
|
|
];
|
2012-07-15 14:55:41 +01:00
|
|
|
|
2015-03-29 12:07:51 +01:00
|
|
|
#cmakeFlags = "-DGENERATE_MANPAGES=ON";
|
2014-10-11 20:56:35 +01:00
|
|
|
|
2015-10-06 14:32:17 +01:00
|
|
|
LD_LIBRARY_PATH = "${stdenv.lib.makeLibraryPath [ cairo pango gobjectIntrospection ]}";
|
2015-10-06 19:31:39 +01:00
|
|
|
GI_TYPELIB_PATH = "${pango.out}/lib/girepository-1.0";
|
2014-12-17 14:03:25 +00:00
|
|
|
LUA_CPATH = "${lgi}/lib/lua/${lua.luaversion}/?.so";
|
|
|
|
LUA_PATH = "${lgi}/share/lua/${lua.luaversion}/?.lua;${lgi}/share/lua/${lua.luaversion}/lgi/?.lua";
|
2013-11-13 02:34:49 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/awesome \
|
2014-12-17 14:03:25 +00:00
|
|
|
--prefix LUA_CPATH ";" '"${lgi}/lib/lua/${lua.luaversion}/?.so"' \
|
|
|
|
--prefix LUA_PATH ";" '"${lgi}/share/lua/${lua.luaversion}/?.lua;${lgi}/share/lua/${lua.luaversion}/lgi/?.lua"' \
|
|
|
|
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
|
2015-10-06 14:32:17 +01:00
|
|
|
--prefix LD_LIBRARY_PATH : "$LD_LIBRARY_PATH" \
|
|
|
|
--prefix PATH : "${compton}/bin:${unclutter}/bin:${procps}/bin:${iproute}/sbin:${coreutils}/bin:${curl.bin}/bin:${alsaUtils}/bin:${findutils}/bin:${xterm}/bin"
|
2013-11-13 02:34:49 +00:00
|
|
|
|
|
|
|
wrapProgram $out/bin/awesome-client \
|
|
|
|
--prefix PATH : "${which}/bin"
|
|
|
|
'';
|
2014-12-17 14:03:25 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
inherit lua;
|
|
|
|
};
|
2013-11-13 02:34:49 +00:00
|
|
|
}
|