2019-06-25 16:09:05 +01:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig
|
2019-06-25 17:06:43 +01:00
|
|
|
, wayland, libGL, mesa, libxkbcommon, cairo, libxcb
|
2019-05-31 21:59:51 +01:00
|
|
|
, libXcursor, xlibsWrapper, udev, libdrm, mtdev, libjpeg, pam, dbus, libinput, libevdev
|
2019-08-24 11:21:12 +01:00
|
|
|
, colord, lcms2, pipewire ? null
|
2014-10-17 22:26:36 +01:00
|
|
|
, pango ? null, libunwind ? null, freerdp ? null, vaapi ? null, libva ? null
|
2016-04-08 21:13:14 +01:00
|
|
|
, libwebp ? null, xwayland ? null, wayland-protocols
|
2014-12-25 08:08:10 +00:00
|
|
|
# beware of null defaults, as the parameters *are* supplied by callPackage by default
|
2014-10-17 22:26:36 +01:00
|
|
|
}:
|
2012-12-02 11:42:55 +00:00
|
|
|
|
2019-05-31 21:59:51 +01:00
|
|
|
with stdenv.lib;
|
2012-12-02 11:42:55 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "weston";
|
2020-01-25 12:37:06 +00:00
|
|
|
version = "8.0.0";
|
2012-12-02 11:42:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://wayland.freedesktop.org/releases/${pname}-${version}.tar.xz";
|
2020-01-25 12:37:06 +00:00
|
|
|
sha256 = "0j3q0af3595g4wcicldgy749zm2g2b6bswa6ya8k075a5sdv863m";
|
2012-12-02 11:42:55 +00:00
|
|
|
};
|
|
|
|
|
2019-05-31 21:59:51 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig ];
|
2013-11-23 22:56:38 +00:00
|
|
|
buildInputs = [
|
2019-05-28 20:09:34 +01:00
|
|
|
wayland libGL mesa libxkbcommon cairo libxcb libXcursor xlibsWrapper udev libdrm
|
2019-05-31 21:59:51 +01:00
|
|
|
mtdev libjpeg pam dbus libinput libevdev pango libunwind freerdp vaapi libva
|
2016-04-08 21:13:14 +01:00
|
|
|
libwebp wayland-protocols
|
2019-08-24 11:21:12 +01:00
|
|
|
colord lcms2 pipewire
|
2013-11-23 22:56:38 +00:00
|
|
|
];
|
2012-12-02 11:42:55 +00:00
|
|
|
|
2019-05-31 21:59:51 +01:00
|
|
|
mesonFlags= [
|
|
|
|
"-Dbackend-drm-screencast-vaapi=${boolToString (vaapi != null)}"
|
|
|
|
"-Dbackend-rdp=${boolToString (freerdp != null)}"
|
|
|
|
"-Dxwayland=${boolToString (xwayland != null)}" # Default is true!
|
|
|
|
"-Dremoting=false" # TODO
|
2019-08-24 11:21:12 +01:00
|
|
|
"-Dpipewire=${boolToString (pipewire != null)}"
|
2019-05-31 21:59:51 +01:00
|
|
|
"-Dimage-webp=${boolToString (libwebp != null)}"
|
|
|
|
"-Ddemo-clients=false"
|
|
|
|
"-Dsimple-clients="
|
|
|
|
"-Dtest-junit-xml=false"
|
|
|
|
# TODO:
|
|
|
|
#"--enable-clients"
|
|
|
|
#"--disable-setuid-install" # prevent install target to chown root weston-launch, which fails
|
|
|
|
] ++ optionals (xwayland != null) [
|
|
|
|
"-Dxwayland-path=${xwayland.out}/bin/Xwayland"
|
|
|
|
];
|
2012-12-07 11:28:35 +00:00
|
|
|
|
2020-01-25 12:37:06 +00:00
|
|
|
passthru.providedSessions = [ "weston" ];
|
|
|
|
|
2019-05-31 21:59:51 +01:00
|
|
|
meta = {
|
2012-12-02 11:42:55 +00:00
|
|
|
description = "Reference implementation of a Wayland compositor";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://wayland.freedesktop.org/";
|
2014-10-17 22:26:36 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2019-05-31 21:59:51 +01:00
|
|
|
maintainers = with maintainers; [ primeos ];
|
2012-12-02 11:42:55 +00:00
|
|
|
};
|
|
|
|
}
|