2017-07-29 14:32:42 +01:00
|
|
|
{ stdenv, 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
|
2018-02-25 02:23:58 +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-07-29 14:32:42 +01:00
|
|
|
version = "4.2";
|
2017-11-28 18:35:35 +00:00
|
|
|
|
2017-03-19 15:26:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "awesomewm";
|
|
|
|
repo = "awesome";
|
|
|
|
rev = "v${version}";
|
2017-07-29 14:32:42 +01:00
|
|
|
sha256 = "1pcgagcvm6rdky8p8dd810j3ywaz0ncyk5xgaykslaixzrq60kff";
|
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-11-28 18:35:35 +00:00
|
|
|
xmlto docbook_xml_dtd_45
|
2017-03-19 15:26:22 +00:00
|
|
|
docbook_xsl findXMLCatalogs
|
2016-03-27 16:14:46 +01:00
|
|
|
];
|
2017-11-28 18:35:35 +00:00
|
|
|
|
2018-02-25 02:23:58 +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
|
|
|
|
2015-03-29 12:07:51 +01:00
|
|
|
#cmakeFlags = "-DGENERATE_MANPAGES=ON";
|
2017-09-18 00:02:17 +01:00
|
|
|
cmakeFlags = "-DOVERRIDE_VERSION=${version}";
|
2014-10-11 20:56:35 +01:00
|
|
|
|
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" \
|
2018-01-02 17:24:56 +00:00
|
|
|
--add-flags '--search ${lgi}/lib/lua/${lua.luaversion}' \
|
|
|
|
--add-flags '--search ${lgi}/share/lua/${lua.luaversion}' \
|
2014-12-17 14:03:25 +00:00
|
|
|
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_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
|
|
|
}
|