2017-09-26 15:24:13 +00:00
|
|
|
{ stdenv, fetchFromGitHub
|
2017-10-24 15:43:19 +00:00
|
|
|
, cmake, pkgconfig, asciidoc, libxslt, docbook_xsl
|
|
|
|
, wayland, wlc, libxkbcommon, pcre, json_c, dbus_libs
|
|
|
|
, pango, cairo, libinput, libcap, pam, gdk_pixbuf, libpthreadstubs
|
2017-09-26 15:24:13 +00:00
|
|
|
, libXdmcp
|
2017-10-24 15:43:19 +00:00
|
|
|
, buildDocs ? true
|
2015-10-23 23:32:20 +00:00
|
|
|
}:
|
|
|
|
|
2017-10-17 01:47:59 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2017-09-26 15:24:13 +00:00
|
|
|
name = "sway-${version}";
|
2017-10-17 01:47:59 +00:00
|
|
|
version = "0.14.0";
|
2016-07-17 07:31:41 +00:00
|
|
|
|
2017-09-26 15:24:13 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Sircmpwn";
|
|
|
|
repo = "sway";
|
|
|
|
rev = "${version}";
|
2017-10-17 01:47:59 +00:00
|
|
|
sha256 = "1l8v9cdzd44bm4q71d47vqg6933b8j42q1a61r362vz2la1rcpq2";
|
2017-09-26 15:24:13 +00:00
|
|
|
};
|
2016-07-17 07:31:41 +00:00
|
|
|
|
2017-09-26 15:24:13 +00:00
|
|
|
nativeBuildInputs = [
|
2017-10-24 15:43:19 +00:00
|
|
|
cmake pkgconfig
|
|
|
|
] ++ stdenv.lib.optional buildDocs [ asciidoc libxslt docbook_xsl ];
|
2017-09-26 15:24:13 +00:00
|
|
|
buildInputs = [
|
2017-10-24 15:43:19 +00:00
|
|
|
wayland wlc libxkbcommon pcre json_c dbus_libs
|
|
|
|
pango cairo libinput libcap pam gdk_pixbuf libpthreadstubs
|
2017-09-26 15:24:13 +00:00
|
|
|
libXdmcp
|
|
|
|
];
|
2016-07-17 07:31:41 +00:00
|
|
|
|
2017-10-24 15:43:19 +00:00
|
|
|
enableParallelBuilding = true;
|
2016-07-17 07:31:41 +00:00
|
|
|
|
2017-09-26 15:24:13 +00:00
|
|
|
cmakeFlags = "-DVERSION=${version}";
|
2016-07-17 07:31:41 +00:00
|
|
|
|
2017-09-26 15:24:13 +00: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.
|
|
|
|
};
|
|
|
|
}
|