2017-07-29 15:32:42 +02:00
|
|
|
{ stdenv, fetchFromGitHub, luaPackages, cairo, librsvg, cmake, imagemagick, pkgconfig, gdk_pixbuf
|
2015-09-15 11:26:18 +02:00
|
|
|
, xorg, libstartup_notification, libxdg_basedir, libpthreadstubs
|
2014-12-17 15:03:25 +01:00
|
|
|
, xcb-util-cursor, makeWrapper, pango, gobjectIntrospection, unclutter
|
2015-03-06 00:04:46 +01:00
|
|
|
, compton, procps, iproute, coreutils, curl, alsaUtils, findutils, xterm
|
2015-03-29 13:07:51 +02:00
|
|
|
, which, dbus, nettools, git, asciidoc, doxygen
|
2016-03-27 17:14:46 +02:00
|
|
|
, xmlto, docbook_xml_dtd_45, docbook_xsl, findXMLCatalogs
|
2018-02-25 03:23:58 +01:00
|
|
|
, libxkbcommon, xcbutilxrm, hicolor-icon-theme
|
2015-03-29 13:07:51 +02:00
|
|
|
}:
|
2010-03-04 15:44:56 +01:00
|
|
|
|
2017-02-17 01:22:38 +01:00
|
|
|
with luaPackages; stdenv.mkDerivation rec {
|
2011-01-21 09:24:41 +01:00
|
|
|
name = "awesome-${version}";
|
2017-07-29 15:32:42 +02:00
|
|
|
version = "4.2";
|
2017-11-28 19:35:35 +01:00
|
|
|
|
2017-03-19 16:26:22 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "awesomewm";
|
|
|
|
repo = "awesome";
|
|
|
|
rev = "v${version}";
|
2017-07-29 15:32:42 +02:00
|
|
|
sha256 = "1pcgagcvm6rdky8p8dd810j3ywaz0ncyk5xgaykslaixzrq60kff";
|
2010-03-04 15:44:56 +01:00
|
|
|
};
|
|
|
|
|
2016-03-27 17:14:46 +02:00
|
|
|
nativeBuildInputs = [
|
2013-11-13 03:34:49 +01:00
|
|
|
asciidoc
|
|
|
|
cmake
|
|
|
|
doxygen
|
2016-03-27 17:14:46 +02:00
|
|
|
imagemagick
|
|
|
|
makeWrapper
|
|
|
|
pkgconfig
|
2017-11-28 19:35:35 +01:00
|
|
|
xmlto docbook_xml_dtd_45
|
2017-03-19 16:26:22 +01:00
|
|
|
docbook_xsl findXMLCatalogs
|
2016-03-27 17:14:46 +02:00
|
|
|
];
|
2017-11-28 19:35:35 +01:00
|
|
|
|
2018-02-25 03:23:58 +01:00
|
|
|
propagatedUserEnvPkgs = [ hicolor-icon-theme ];
|
2017-05-14 22:44:11 +02:00
|
|
|
buildInputs = [ cairo librsvg dbus gdk_pixbuf gobjectIntrospection
|
2017-02-17 01:22:38 +01: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 15:55:41 +02:00
|
|
|
|
2015-03-29 13:07:51 +02:00
|
|
|
#cmakeFlags = "-DGENERATE_MANPAGES=ON";
|
2017-09-18 01:02:17 +02:00
|
|
|
cmakeFlags = "-DOVERRIDE_VERSION=${version}";
|
2014-10-11 21:56:35 +02:00
|
|
|
|
2015-10-06 20:31:39 +02:00
|
|
|
GI_TYPELIB_PATH = "${pango.out}/lib/girepository-1.0";
|
2014-12-17 15:03:25 +01: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 03:34:49 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/awesome \
|
2017-05-14 22:44:11 +02:00
|
|
|
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
|
2018-01-02 18:24:56 +01:00
|
|
|
--add-flags '--search ${lgi}/lib/lua/${lua.luaversion}' \
|
|
|
|
--add-flags '--search ${lgi}/share/lua/${lua.luaversion}' \
|
2014-12-17 15:03:25 +01:00
|
|
|
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
|
2016-08-23 00:13:49 +02:00
|
|
|
--prefix PATH : "${stdenv.lib.makeBinPath [ compton unclutter procps iproute coreutils curl alsaUtils findutils xterm ]}"
|
2013-11-13 03:34:49 +01:00
|
|
|
|
|
|
|
wrapProgram $out/bin/awesome-client \
|
|
|
|
--prefix PATH : "${which}/bin"
|
|
|
|
'';
|
2014-12-17 15:03:25 +01:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
inherit lua;
|
|
|
|
};
|
2017-02-17 01:22:38 +01: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 03:34:49 +01:00
|
|
|
}
|