2013-03-06 21:59:59 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, wayland, mesa, libxkbcommon
|
2013-02-18 19:32:47 +00:00
|
|
|
, cairo, libxcb, libXcursor, x11, udev, libdrm, mtdev
|
2014-01-25 23:41:14 +00:00
|
|
|
, libjpeg, pam, autoconf, automake, libtool, dbus }:
|
2012-12-02 11:42:55 +00:00
|
|
|
|
2014-01-25 23:41:14 +00:00
|
|
|
let version = "1.4.0"; in
|
2012-12-02 11:42:55 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "weston-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://wayland.freedesktop.org/releases/${name}.tar.xz";
|
2014-01-25 23:41:14 +00:00
|
|
|
sha256 = "0r7dz72ys9p3f697ajgmihkar2da36bnjna6yanb3kg9k2fk38kl";
|
2012-12-02 11:42:55 +00:00
|
|
|
};
|
|
|
|
|
2013-11-23 22:56:38 +00:00
|
|
|
buildInputs = [
|
|
|
|
pkgconfig wayland mesa libxkbcommon
|
2014-01-25 23:41:14 +00:00
|
|
|
cairo libxcb libXcursor x11 udev libdrm mtdev libjpeg pam dbus.libs
|
2013-11-23 22:56:38 +00:00
|
|
|
];
|
2012-12-02 11:42:55 +00:00
|
|
|
|
2013-11-23 22:30:47 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${libdrm}/include/libdrm";
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--disable-setuid-install" # prevent install target to chown root weston-launch, which fails
|
|
|
|
];
|
2012-12-07 11:28:35 +00:00
|
|
|
|
2012-12-02 11:42:55 +00:00
|
|
|
meta = {
|
|
|
|
description = "Reference implementation of a Wayland compositor";
|
|
|
|
homepage = http://wayland.freedesktop.org/;
|
|
|
|
license = stdenv.lib.licenses.mit;
|
2013-11-23 22:30:47 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2012-12-02 11:42:55 +00:00
|
|
|
};
|
|
|
|
}
|