2018-03-28 15:23:32 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, wayland, libGL, mesa_noglu, libxkbcommon, cairo, libxcb
|
2015-09-15 11:13:22 +02:00
|
|
|
, libXcursor, xlibsWrapper, udev, libdrm, mtdev, libjpeg, pam, dbus, libinput
|
2014-10-17 23:26:36 +02:00
|
|
|
, pango ? null, libunwind ? null, freerdp ? null, vaapi ? null, libva ? null
|
2016-04-08 22:13:14 +02:00
|
|
|
, libwebp ? null, xwayland ? null, wayland-protocols
|
2014-12-25 09:08:10 +01:00
|
|
|
# beware of null defaults, as the parameters *are* supplied by callPackage by default
|
2014-10-17 23:26:36 +02:00
|
|
|
}:
|
2012-12-02 12:42:55 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-07-22 11:23:17 +02:00
|
|
|
name = "weston-${version}";
|
2018-08-30 20:27:55 +02:00
|
|
|
version = "5.0.0";
|
2012-12-02 12:42:55 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://wayland.freedesktop.org/releases/${name}.tar.xz";
|
2018-08-30 20:27:55 +02:00
|
|
|
sha256 = "1bsc9ry566mpk6fdwkqpvwq2j7m79d9cvh7d3lgf6igsphik98hm";
|
2012-12-02 12:42:55 +01:00
|
|
|
};
|
|
|
|
|
2015-09-22 23:30:05 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2013-11-23 23:56:38 +01:00
|
|
|
buildInputs = [
|
2018-03-28 15:23:32 +02:00
|
|
|
wayland libGL mesa_noglu libxkbcommon cairo libxcb libXcursor xlibsWrapper udev libdrm
|
2015-10-13 14:33:08 +02:00
|
|
|
mtdev libjpeg pam dbus libinput pango libunwind freerdp vaapi libva
|
2016-04-08 22:13:14 +02:00
|
|
|
libwebp wayland-protocols
|
2013-11-23 23:56:38 +01:00
|
|
|
];
|
2012-12-02 12:42:55 +01:00
|
|
|
|
2013-11-23 23:30:47 +01:00
|
|
|
configureFlags = [
|
2014-10-17 23:26:36 +02:00
|
|
|
"--enable-x11-compositor"
|
|
|
|
"--enable-drm-compositor"
|
|
|
|
"--enable-wayland-compositor"
|
|
|
|
"--enable-headless-compositor"
|
|
|
|
"--enable-fbdev-compositor"
|
|
|
|
"--enable-screen-sharing"
|
|
|
|
"--enable-clients"
|
|
|
|
"--enable-weston-launch"
|
2013-11-23 23:30:47 +01:00
|
|
|
"--disable-setuid-install" # prevent install target to chown root weston-launch, which fails
|
2014-10-17 23:26:36 +02:00
|
|
|
] ++ stdenv.lib.optional (freerdp != null) "--enable-rdp-compositor"
|
2018-03-08 01:04:09 +01:00
|
|
|
++ stdenv.lib.optional (vaapi != null) "--enable-vaapi-recorder"
|
2014-12-25 09:08:10 +01:00
|
|
|
++ stdenv.lib.optionals (xwayland != null) [
|
|
|
|
"--enable-xwayland"
|
2016-02-01 19:46:27 +01:00
|
|
|
"--with-xserver-path=${xwayland.out}/bin/Xwayland"
|
2014-12-25 09:08:10 +01:00
|
|
|
];
|
2012-12-07 12:28:35 +01:00
|
|
|
|
2014-10-17 23:26:36 +02:00
|
|
|
meta = with stdenv.lib; {
|
2012-12-02 12:42:55 +01:00
|
|
|
description = "Reference implementation of a Wayland compositor";
|
2018-06-27 22:12:57 +02:00
|
|
|
homepage = https://wayland.freedesktop.org/;
|
2014-10-17 23:26:36 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2012-12-02 12:42:55 +01:00
|
|
|
};
|
|
|
|
}
|