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