1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/window-managers/weston/default.nix

48 lines
1.6 KiB
Nix
Raw Normal View History

2014-10-17 22:26:36 +01: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 11:40:37 +00:00
, libwebp ? null, xwayland ? null
# 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}";
version = "1.8.0";
src = fetchurl {
url = "http://wayland.freedesktop.org/releases/${name}.tar.xz";
sha256 = "04nkbbdglh0pqznxkdqvak3pc53jmz24d0658bn5r0cf6agycqw9";
};
buildInputs = [
2014-10-17 22:26:36 +01:00
pkgconfig wayland mesa libxkbcommon cairo libxcb libXcursor x11 udev libdrm
mtdev libjpeg pam dbus.libs libinput pango libunwind freerdp vaapi libva
libwebp
];
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"
2014-11-20 11:40:37 +00:00
++ stdenv.lib.optional (vaapi != null) "--enabe-vaapi-recorder"
++ stdenv.lib.optionals (xwayland != null) [
"--enable-xwayland"
"--with-xserver-path=${xwayland}/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 ];
};
}