nixpkgs/pkgs/applications/window-managers/sway/beta.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

{ 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";
src = fetchFromGitHub {
owner = "swaywm";
repo = "sway";
rev = version;
2018-11-30 00:50:41 +00:00
sha256 = "0f9rniwizbc3vzxdy6rc47749p6gczfbgfdy4r458134rbl551hw";
};
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.
};
}