2018-10-23 18:34:59 +00:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, meson, ninja
|
|
|
|
, pkgconfig, scdoc
|
|
|
|
, wayland, libxkbcommon, pcre, json_c, dbus
|
|
|
|
, pango, cairo, libinput, libcap, pam, gdk_pixbuf
|
|
|
|
, wlroots, wayland-protocols
|
|
|
|
, buildDocs ? true
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "sway";
|
2018-11-30 00:50:41 +00:00
|
|
|
version = "1.0-beta.2";
|
2018-10-23 18:34:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "swaywm";
|
|
|
|
repo = "sway";
|
|
|
|
rev = version;
|
2018-11-30 00:50:41 +00:00
|
|
|
sha256 = "0f9rniwizbc3vzxdy6rc47749p6gczfbgfdy4r458134rbl551hw";
|
2018-10-23 18:34:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig meson ninja
|
|
|
|
] ++ stdenv.lib.optional buildDocs scdoc;
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
wayland libxkbcommon pcre json_c dbus
|
|
|
|
pango cairo libinput libcap pam gdk_pixbuf
|
|
|
|
wlroots wayland-protocols
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
mesonFlags = "-Dsway-version=${version}";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "i3-compatible window manager for Wayland";
|
|
|
|
homepage = https://swaywm.org;
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ primeos synthetica ]; # Trying to keep it up-to-date.
|
|
|
|
};
|
|
|
|
}
|