3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/window-managers/weston/default.nix

49 lines
1.7 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, wayland, libGLU_combined, libxkbcommon, cairo, libxcb
, 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
# beware of null defaults, as the parameters *are* supplied by callPackage by default
2014-10-17 22:26:36 +01:00
}:
stdenv.mkDerivation rec {
name = "weston-${version}";
2017-11-20 16:55:52 +00:00
version = "3.0.0";
src = fetchurl {
url = "http://wayland.freedesktop.org/releases/${name}.tar.xz";
2017-11-20 16:55:52 +00:00
sha256 = "19936zlkb75xcaidd8fag4ah8000wrh2ziqy7nxkq36pimgdbqfd";
};
2015-09-22 22:30:05 +01:00
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
wayland libGLU_combined libxkbcommon cairo libxcb libXcursor xlibsWrapper udev libdrm
mtdev libjpeg pam dbus libinput pango libunwind freerdp vaapi libva
2016-04-08 21:13:14 +01:00
libwebp wayland-protocols
];
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"
"--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"
2018-03-08 00:04:09 +00:00
++ stdenv.lib.optional (vaapi != null) "--enable-vaapi-recorder"
++ stdenv.lib.optionals (xwayland != null) [
"--enable-xwayland"
"--with-xserver-path=${xwayland.out}/bin/Xwayland"
];
2014-10-17 22:26:36 +01:00
meta = with stdenv.lib; {
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 ];
};
}