cdfad5ad84
Fixes #67704.
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitHub, makeWrapper
|
|
, meson, ninja
|
|
, pkgconfig, scdoc
|
|
, wayland, libxkbcommon, pcre, json_c, dbus, libevdev
|
|
, pango, cairo, libinput, libcap, pam, gdk-pixbuf, librsvg
|
|
, wlroots, wayland-protocols
|
|
}:
|
|
|
|
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 dbus libevdev
|
|
pango cairo libinput libcap pam gdk-pixbuf librsvg
|
|
wlroots wayland-protocols
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
mesonFlags = [
|
|
"-Ddefault-wallpaper=false" "-Dxwayland=enabled" "-Dgdk-pixbuf=enabled"
|
|
"-Dtray=enabled" "-Dman-pages=enabled"
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "i3-compatible tiling Wayland compositor";
|
|
homepage = "https://swaywm.org";
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ primeos synthetica ma27 ];
|
|
};
|
|
}
|