2012-12-02 12:42:55 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, wayland, mesa90x, libxkbcommon, pixman
|
2013-01-28 19:45:07 +01:00
|
|
|
, cairo, libxcb, libXcursor, x11, udev, libdrm2_4_40, mtdev
|
2012-12-07 12:10:14 +01:00
|
|
|
, libjpeg, pam, autoconf, automake, libtool }:
|
2012-12-02 12:42:55 +01:00
|
|
|
|
2013-01-28 19:45:07 +01:00
|
|
|
let version = "1.0.4"; 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-01-28 19:45:07 +01:00
|
|
|
sha256 = "1841sd6i8nq9gs1xkx8lwcg4lzy6yfcs95nnsfaf0y1ppd6c9sj2";
|
2012-12-02 12:42:55 +01:00
|
|
|
};
|
|
|
|
|
2012-12-07 12:10:14 +01:00
|
|
|
patches = [
|
|
|
|
./makefile.patch
|
|
|
|
];
|
|
|
|
|
2012-12-02 12:42:55 +01:00
|
|
|
buildInputs = [ pkgconfig wayland mesa90x libxkbcommon pixman
|
2013-01-28 19:45:07 +01:00
|
|
|
cairo libxcb libXcursor x11 udev libdrm2_4_40 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;
|
|
|
|
};
|
|
|
|
}
|