2014-10-17 22:26:36 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, wayland, mesa, libxkbcommon, cairo, libxcb
|
2015-09-15 10:13:22 +01:00
|
|
|
, libXcursor, xlibsWrapper, udev, libdrm, mtdev, libjpeg, pam, dbus, libinput
|
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
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-07-22 10:23:17 +01:00
|
|
|
name = "weston-${version}";
|
2016-06-01 09:27:24 +01:00
|
|
|
version = "1.11.0";
|
2012-12-02 11:42:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://wayland.freedesktop.org/releases/${name}.tar.xz";
|
2016-06-01 09:27:24 +01:00
|
|
|
sha256 = "09biddxw3ar797kxf9mywjkb2iwky6my39gpp51ni846y7lqdq05";
|
2012-12-02 11:42:55 +00:00
|
|
|
};
|
|
|
|
|
2015-09-22 22:30:05 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2013-11-23 22:56:38 +00:00
|
|
|
buildInputs = [
|
2015-09-23 22:44:21 +01:00
|
|
|
wayland mesa libxkbcommon cairo libxcb libXcursor xlibsWrapper udev libdrm
|
2015-10-13 13:33:08 +01:00
|
|
|
mtdev libjpeg pam dbus libinput pango libunwind freerdp vaapi libva
|
2016-04-08 21:13:14 +01:00
|
|
|
libwebp wayland-protocols
|
2013-11-23 22:56:38 +00:00
|
|
|
];
|
2012-12-02 11:42:55 +00:00
|
|
|
|
2013-11-23 22:30:47 +00:00
|
|
|
configureFlags = [
|
2014-10-17 22:26:36 +01: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 22:30:47 +00:00
|
|
|
"--disable-setuid-install" # prevent install target to chown root weston-launch, which fails
|
2014-10-17 22:26:36 +01:00
|
|
|
] ++ stdenv.lib.optional (freerdp != null) "--enable-rdp-compositor"
|
2014-11-20 11:40:37 +00:00
|
|
|
++ stdenv.lib.optional (vaapi != null) "--enabe-vaapi-recorder"
|
2014-12-25 08:08:10 +00:00
|
|
|
++ stdenv.lib.optionals (xwayland != null) [
|
|
|
|
"--enable-xwayland"
|
2016-02-01 18:46:27 +00:00
|
|
|
"--with-xserver-path=${xwayland.out}/bin/Xwayland"
|
2014-12-25 08:08:10 +00:00
|
|
|
];
|
2012-12-07 11:28:35 +00:00
|
|
|
|
2014-10-17 22:26:36 +01:00
|
|
|
meta = with stdenv.lib; {
|
2012-12-02 11:42:55 +00:00
|
|
|
description = "Reference implementation of a Wayland compositor";
|
|
|
|
homepage = http://wayland.freedesktop.org/;
|
2014-10-17 22:26:36 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
2012-12-02 11:42:55 +00:00
|
|
|
};
|
|
|
|
}
|