1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 15:15:36 +00:00
nixpkgs/pkgs/applications/window-managers/weston/default.nix
R. RyanTM 54951b1bf8 weston: 4.0.0 -> 5.0.0 (#45798)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
weston
2018-08-30 20:27:55 +02:00

49 lines
1.8 KiB
Nix

{ stdenv, fetchurl, pkgconfig, wayland, libGL, mesa_noglu, libxkbcommon, cairo, libxcb
, libXcursor, xlibsWrapper, udev, libdrm, mtdev, libjpeg, pam, dbus, libinput
, pango ? null, libunwind ? null, freerdp ? null, vaapi ? null, libva ? null
, libwebp ? null, xwayland ? null, wayland-protocols
# beware of null defaults, as the parameters *are* supplied by callPackage by default
}:
stdenv.mkDerivation rec {
name = "weston-${version}";
version = "5.0.0";
src = fetchurl {
url = "https://wayland.freedesktop.org/releases/${name}.tar.xz";
sha256 = "1bsc9ry566mpk6fdwkqpvwq2j7m79d9cvh7d3lgf6igsphik98hm";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
wayland libGL mesa_noglu libxkbcommon cairo libxcb libXcursor xlibsWrapper udev libdrm
mtdev libjpeg pam dbus libinput pango libunwind freerdp vaapi libva
libwebp wayland-protocols
];
configureFlags = [
"--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
] ++ stdenv.lib.optional (freerdp != null) "--enable-rdp-compositor"
++ stdenv.lib.optional (vaapi != null) "--enable-vaapi-recorder"
++ stdenv.lib.optionals (xwayland != null) [
"--enable-xwayland"
"--with-xserver-path=${xwayland.out}/bin/Xwayland"
];
meta = with stdenv.lib; {
description = "Reference implementation of a Wayland compositor";
homepage = https://wayland.freedesktop.org/;
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ wkennington ];
};
}