d8d8a0ba14
* sway-beta: init at 1.0-beta1 * sway, sway-beta: use https url
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{ 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";
|
|
version = "1.0-beta.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "swaywm";
|
|
repo = "sway";
|
|
rev = version;
|
|
sha256 = "0h9kgrg9mh2acks63z72bw3lwff32pf2nb4i7i5xhd9i6l4gfnqa";
|
|
};
|
|
|
|
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.
|
|
};
|
|
}
|