2017-09-26 17:24:13 +02:00
|
|
|
{ stdenv, fetchFromGitHub
|
2017-10-24 17:43:19 +02:00
|
|
|
, cmake, pkgconfig, asciidoc, libxslt, docbook_xsl
|
2018-07-17 22:11:16 +02:00
|
|
|
, wayland, wlc, libxkbcommon, pcre, json_c, dbus
|
2017-10-24 17:43:19 +02:00
|
|
|
, pango, cairo, libinput, libcap, pam, gdk_pixbuf, libpthreadstubs
|
2017-09-26 17:24:13 +02:00
|
|
|
, libXdmcp
|
2017-10-24 17:43:19 +02:00
|
|
|
, buildDocs ? true
|
2015-10-24 01:32:20 +02:00
|
|
|
}:
|
|
|
|
|
2017-10-17 03:47:59 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2017-09-26 17:24:13 +02:00
|
|
|
name = "sway-${version}";
|
2018-04-13 21:56:57 +02:00
|
|
|
version = "0.15.2";
|
2016-07-17 09:31:41 +02:00
|
|
|
|
2017-09-26 17:24:13 +02:00
|
|
|
src = fetchFromGitHub {
|
2017-11-07 22:16:50 +01:00
|
|
|
owner = "swaywm";
|
2017-09-26 17:24:13 +02:00
|
|
|
repo = "sway";
|
2017-11-07 22:16:50 +01:00
|
|
|
rev = version;
|
2018-04-13 21:56:57 +02:00
|
|
|
sha256 = "1p9j5gv85lsgj4z28qja07dqyvqk41w6mlaflvvm9yxafx477g5n";
|
2017-09-26 17:24:13 +02:00
|
|
|
};
|
2016-07-17 09:31:41 +02:00
|
|
|
|
2017-09-26 17:24:13 +02:00
|
|
|
nativeBuildInputs = [
|
2017-10-24 17:43:19 +02:00
|
|
|
cmake pkgconfig
|
|
|
|
] ++ stdenv.lib.optional buildDocs [ asciidoc libxslt docbook_xsl ];
|
2017-09-26 17:24:13 +02:00
|
|
|
buildInputs = [
|
2018-07-17 22:11:16 +02:00
|
|
|
wayland wlc libxkbcommon pcre json_c dbus
|
2017-10-24 17:43:19 +02:00
|
|
|
pango cairo libinput libcap pam gdk_pixbuf libpthreadstubs
|
2017-09-26 17:24:13 +02:00
|
|
|
libXdmcp
|
|
|
|
];
|
2016-07-17 09:31:41 +02:00
|
|
|
|
2017-10-24 17:43:19 +02:00
|
|
|
enableParallelBuilding = true;
|
2016-07-17 09:31:41 +02:00
|
|
|
|
2017-12-21 17:16:19 +01:00
|
|
|
cmakeFlags = "-DVERSION=${version} -DLD_LIBRARY_PATH=/run/opengl-driver/lib:/run/opengl-driver-32/lib";
|
2016-07-17 09:31:41 +02:00
|
|
|
|
2017-09-26 17:24:13 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "i3-compatible window manager for Wayland";
|
|
|
|
homepage = http://swaywm.org;
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ primeos ]; # Trying to keep it up-to-date.
|
|
|
|
};
|
|
|
|
}
|