1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{ stdenv, lib, fetchFromGitHub, makeWrapper
, meson, ninja
, pkgconfig, scdoc
, wayland, libxkbcommon, pcre, json_c, libevdev, pango, cairo, libinput
, wlroots, wayland-protocols
, gdkPixbufSupport ? true, gdk-pixbuf
, xwaylandSupport ? !(lib.elem "-Dxwayland=disabled" (wlroots.mesonFlags or []))
}:
stdenv.mkDerivation rec {
pname = "sway-unwrapped";
version = "1.4";
src = fetchFromGitHub {
owner = "swaywm";
repo = "sway";
rev = version;
sha256 = "11qf89y3q92g696a6f4d23qb44gqixg6qxq740vwv2jw59ms34ja";
};
patches = [
./sway-config-no-nix-store-references.patch
./load-configuration-from-etc.patch
];
nativeBuildInputs = [
pkgconfig meson ninja scdoc
];
buildInputs = [
wayland libxkbcommon pcre json_c libevdev pango cairo libinput
wlroots wayland-protocols
] ++ lib.optional gdkPixbufSupport gdk-pixbuf;
enableParallelBuilding = true;
mesonFlags =
[ "-Ddefault-wallpaper=false" "-Dtray=enabled" "-Dman-pages=enabled" ]
++ lib.optional gdkPixbufSupport "-Dgdk-pixbuf=enabled"
++ lib.optional xwaylandSupport "-Dxwayland=enabled";
meta = with lib; {
description = "i3-compatible tiling Wayland compositor";
homepage = https://swaywm.org;
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ primeos synthetica ma27 ];
};
}
|