2017-05-14 21:44:11 +01:00
|
|
|
{ stdenv, fetchurl, fetchFromGitHub, luaPackages, cairo, librsvg, 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
|
2017-02-17 00:22:38 +00:00
|
|
|
, libxkbcommon, xcbutilxrm, hicolor_icon_theme
|
2015-03-29 12:07:51 +01:00
|
|
|
}:
|
2010-03-04 14:44:56 +00:00
|
|
|
|
2017-02-17 00:22:38 +00:00
|
|
|
with luaPackages; stdenv.mkDerivation rec {
|
2011-01-21 08:24:41 +00:00
|
|
|
name = "awesome-${version}";
|
2017-03-19 15:26:22 +00:00
|
|
|
version = "4.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "awesomewm";
|
|
|
|
repo = "awesome";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1qik8h5nwjq4535lpdpal85vas1k7am3s6l5r763kpdzxhfcyyaj";
|
2010-03-04 14:44:56 +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
|
2017-03-19 15:26:22 +00:00
|
|
|
xmlto docbook_xml_dtd_45
|
|
|
|
docbook_xsl findXMLCatalogs
|
2016-03-27 16:14:46 +01:00
|
|
|
];
|
2017-03-19 15:26:22 +00:00
|
|
|
|
2017-02-17 00:22:38 +00:00
|
|
|
propagatedUserEnvPkgs = [ hicolor_icon_theme ];
|
2017-05-14 21:44:11 +01:00
|
|
|
buildInputs = [ cairo librsvg dbus gdk_pixbuf gobjectIntrospection
|
2017-02-17 00:22:38 +00:00
|
|
|
git lgi libpthreadstubs libstartup_notification
|
|
|
|
libxdg_basedir lua nettools pango xcb-util-cursor
|
|
|
|
xorg.libXau xorg.libXdmcp xorg.libxcb xorg.libxshmfence
|
|
|
|
xorg.xcbutil xorg.xcbutilimage xorg.xcbutilkeysyms
|
|
|
|
xorg.xcbutilrenderutil xorg.xcbutilwm libxkbcommon
|
|
|
|
xcbutilxrm ];
|
2012-07-15 14:55:41 +01:00
|
|
|
|
2017-03-22 09:55:34 +00:00
|
|
|
patches = [
|
|
|
|
(fetchurl {
|
|
|
|
url = "https://patch-diff.githubusercontent.com/raw/awesomeWM/awesome/pull/1639.patch";
|
|
|
|
sha256 = "00piynmbxajd2xbg960gmf0zlqn7m489f4ww482y49ravfy1jhsj";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
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 \
|
2017-05-14 21:44:11 +01:00
|
|
|
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
|
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" \
|
2016-08-22 23:13:49 +01:00
|
|
|
--prefix PATH : "${stdenv.lib.makeBinPath [ compton unclutter procps iproute coreutils curl alsaUtils findutils xterm ]}"
|
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;
|
|
|
|
};
|
2017-02-17 00:22:38 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Highly configurable, dynamic window manager for X";
|
|
|
|
homepage = https://awesomewm.org/;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ lovek323 rasendubi ndowens ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2013-11-13 02:34:49 +00:00
|
|
|
}
|