2014-12-17 06:03:25 -08:00
|
|
|
{ stdenv, fetchurl, luaPackages, cairo, cmake, imagemagick, pkgconfig, gdk_pixbuf
|
2015-09-15 02:26:18 -07:00
|
|
|
, xorg, libstartup_notification, libxdg_basedir, libpthreadstubs
|
2014-12-17 06:03:25 -08:00
|
|
|
, xcb-util-cursor, makeWrapper, pango, gobjectIntrospection, unclutter
|
2015-03-05 15:04:46 -08:00
|
|
|
, compton, procps, iproute, coreutils, curl, alsaUtils, findutils, xterm
|
2015-03-29 04:07:51 -07:00
|
|
|
, which, dbus, nettools, git, asciidoc, doxygen
|
2016-03-27 08:14:46 -07:00
|
|
|
, xmlto, docbook_xml_dtd_45, docbook_xsl, findXMLCatalogs
|
2016-12-26 11:33:19 -08:00
|
|
|
, libxkbcommon, xcbutilxrm
|
2015-03-29 04:07:51 -07:00
|
|
|
}:
|
2010-03-04 06:44:56 -08:00
|
|
|
|
2011-01-21 00:24:41 -08:00
|
|
|
let
|
2016-12-26 11:33:19 -08:00
|
|
|
version = "4.0";
|
2014-12-17 06:03:25 -08:00
|
|
|
in with luaPackages;
|
2011-01-21 00:24:41 -08:00
|
|
|
|
2010-03-04 06:44:56 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2011-01-21 00:24:41 -08:00
|
|
|
name = "awesome-${version}";
|
2015-03-05 14:56:32 -08:00
|
|
|
|
2010-03-04 06:44:56 -08:00
|
|
|
src = fetchurl {
|
2016-12-26 11:33:19 -08:00
|
|
|
url = "http://github.com/awesomeWM/awesome-releases/raw/master/${name}.tar.xz";
|
|
|
|
sha256 = "0czkcz67sab63gf5m2p2pgg05yinjx60hfb9rfyzdkkg28q9f02w";
|
2010-03-04 06:44:56 -08:00
|
|
|
};
|
|
|
|
|
2013-11-12 18:34:49 -08:00
|
|
|
meta = with stdenv.lib; {
|
2010-03-04 06:44:56 -08:00
|
|
|
description = "Highly configurable, dynamic window manager for X";
|
2016-12-26 11:33:19 -08:00
|
|
|
homepage = https://awesomewm.org/;
|
2015-05-28 10:20:29 -07:00
|
|
|
license = licenses.gpl2Plus;
|
2016-12-26 11:33:19 -08:00
|
|
|
maintainers = with maintainers; [ lovek323 rasendubi ];
|
2013-11-12 18:34:49 -08:00
|
|
|
platforms = platforms.linux;
|
2010-03-04 06:44:56 -08:00
|
|
|
};
|
2015-03-05 14:56:32 -08:00
|
|
|
|
2016-03-27 08:14:46 -07:00
|
|
|
nativeBuildInputs = [
|
2013-11-12 18:34:49 -08:00
|
|
|
asciidoc
|
|
|
|
cmake
|
|
|
|
doxygen
|
2016-03-27 08:14:46 -07:00
|
|
|
imagemagick
|
|
|
|
makeWrapper
|
|
|
|
pkgconfig
|
|
|
|
xmlto docbook_xml_dtd_45 docbook_xsl findXMLCatalogs
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
dbus
|
2013-11-12 18:34:49 -08:00
|
|
|
gdk_pixbuf
|
2014-12-17 06:03:25 -08:00
|
|
|
gobjectIntrospection
|
2013-11-12 18:34:49 -08:00
|
|
|
git
|
|
|
|
lgi
|
|
|
|
libpthreadstubs
|
|
|
|
libstartup_notification
|
|
|
|
libxdg_basedir
|
|
|
|
lua
|
|
|
|
nettools
|
|
|
|
pango
|
|
|
|
xcb-util-cursor
|
2015-09-15 02:26:18 -07:00
|
|
|
xorg.libXau
|
|
|
|
xorg.libXdmcp
|
|
|
|
xorg.libxcb
|
|
|
|
xorg.libxshmfence
|
|
|
|
xorg.xcbutil
|
|
|
|
xorg.xcbutilimage
|
|
|
|
xorg.xcbutilkeysyms
|
|
|
|
xorg.xcbutilrenderutil
|
|
|
|
xorg.xcbutilwm
|
2016-12-26 11:33:19 -08:00
|
|
|
libxkbcommon
|
|
|
|
xcbutilxrm
|
2013-11-12 18:34:49 -08:00
|
|
|
];
|
2012-07-15 06:55:41 -07:00
|
|
|
|
2015-03-29 04:07:51 -07:00
|
|
|
#cmakeFlags = "-DGENERATE_MANPAGES=ON";
|
2014-10-11 12:56:35 -07:00
|
|
|
|
2015-10-06 06:32:17 -07:00
|
|
|
LD_LIBRARY_PATH = "${stdenv.lib.makeLibraryPath [ cairo pango gobjectIntrospection ]}";
|
2015-10-06 11:31:39 -07:00
|
|
|
GI_TYPELIB_PATH = "${pango.out}/lib/girepository-1.0";
|
2014-12-17 06:03:25 -08: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-12 18:34:49 -08:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/awesome \
|
2014-12-17 06:03:25 -08: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 06:32:17 -07:00
|
|
|
--prefix LD_LIBRARY_PATH : "$LD_LIBRARY_PATH" \
|
2016-08-22 15:13:49 -07:00
|
|
|
--prefix PATH : "${stdenv.lib.makeBinPath [ compton unclutter procps iproute coreutils curl alsaUtils findutils xterm ]}"
|
2013-11-12 18:34:49 -08:00
|
|
|
|
|
|
|
wrapProgram $out/bin/awesome-client \
|
|
|
|
--prefix PATH : "${which}/bin"
|
|
|
|
'';
|
2014-12-17 06:03:25 -08:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
inherit lua;
|
|
|
|
};
|
2013-11-12 18:34:49 -08:00
|
|
|
}
|