50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitHub
|
|
, meson, ninja
|
|
, pkgconfig, scdoc
|
|
, wayland, libxkbcommon, pcre, json_c, dbus, libevdev
|
|
, pango, cairo, libinput, libcap, pam, gdk_pixbuf
|
|
, wlroots, wayland-protocols
|
|
, buildDocs ? true
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "${pname}-${version}";
|
|
pname = "sway";
|
|
version = "1.0-rc5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "swaywm";
|
|
repo = "sway";
|
|
rev = version;
|
|
sha256 = "1jkacibmxy9rpq5mxnq7bkwcy0c592zk4vf20j5qbbljp9h7c87i";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -iE "s/version: '1.0',/version: '${version}',/" meson.build
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
pkgconfig meson ninja
|
|
] ++ stdenv.lib.optional buildDocs scdoc;
|
|
|
|
buildInputs = [
|
|
wayland libxkbcommon pcre json_c dbus libevdev
|
|
pango cairo libinput libcap pam gdk_pixbuf
|
|
wlroots wayland-protocols
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
mesonFlags = [
|
|
"-Dxwayland=enabled" "-Dgdk-pixbuf=enabled" "-Dtray=enabled"
|
|
] ++ stdenv.lib.optional buildDocs "-Dman-pages=enabled";
|
|
|
|
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 ];
|
|
};
|
|
}
|