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
|
2012-12-07 12:10:14 +01:00
|
|
|
, libjpeg, pam, autoconf, automake, libtool }:
|
2012-12-02 12:42:55 +01:00
|
|
|
|
2013-02-18 19:57:27 +01:00
|
|
|
let version = "1.0.5"; 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";
|
2013-02-18 19:57:27 +01:00
|
|
|
sha256 = "0g2k82pnlxl8b70ykazj7kn8xffjfsmgcgx427qdrm4083z2hgm0";
|
2012-12-02 12:42:55 +01:00
|
|
|
};
|
|
|
|
|
2013-03-06 22:59:59 +01:00
|
|
|
buildInputs = [ pkgconfig wayland mesa libxkbcommon
|
2013-02-18 20:32:47 +01:00
|
|
|
cairo libxcb libXcursor x11 udev libdrm mtdev
|
2012-12-07 12:10:14 +01:00
|
|
|
libjpeg pam autoconf automake libtool ];
|
|
|
|
|
|
|
|
preConfigure = "autoreconf -vfi";
|
2012-12-02 12:42:55 +01:00
|
|
|
|
2012-12-07 12:28:35 +01:00
|
|
|
# prevent install target to chown root weston-launch, which fails
|
|
|
|
configureFlags = ''
|
|
|
|
--disable-setuid-install
|
|
|
|
'';
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|