mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
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.
|
||
|
};
|
||
|
}
|