2013-03-06 22:59:59 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, wayland, mesa, libxkbcommon
|
2013-02-18 20:32:47 +01:00
|
|
|
, cairo, libxcb, libXcursor, x11, udev, libdrm, mtdev
|
2014-01-26 00:41:14 +01:00
|
|
|
, libjpeg, pam, autoconf, automake, libtool, dbus }:
|
2012-12-02 12:42:55 +01:00
|
|
|
|
2014-01-26 00:41:14 +01:00
|
|
|
let version = "1.4.0"; in
|
2012-12-02 12:42:55 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "weston-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://wayland.freedesktop.org/releases/${name}.tar.xz";
|
2014-01-26 00:41:14 +01:00
|
|
|
sha256 = "0r7dz72ys9p3f697ajgmihkar2da36bnjna6yanb3kg9k2fk38kl";
|
2012-12-02 12:42:55 +01:00
|
|
|
};
|
|
|
|
|
2013-11-23 23:56:38 +01:00
|
|
|
buildInputs = [
|
|
|
|
pkgconfig wayland mesa libxkbcommon
|
2014-01-26 00:41:14 +01:00
|
|
|
cairo libxcb libXcursor x11 udev libdrm mtdev libjpeg pam dbus.libs
|
2013-11-23 23:56:38 +01:00
|
|
|
];
|
2012-12-02 12:42:55 +01:00
|
|
|
|
2013-11-23 23:30:47 +01: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 12:28:35 +01:00
|
|
|
|
2012-12-02 12:42:55 +01:00
|
|
|
meta = {
|
|
|
|
description = "Reference implementation of a Wayland compositor";
|
|
|
|
homepage = http://wayland.freedesktop.org/;
|
|
|
|
license = stdenv.lib.licenses.mit;
|
2013-11-23 23:30:47 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2012-12-02 12:42:55 +01:00
|
|
|
};
|
|
|
|
}
|