2012-12-02 11:42:55 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, wayland, mesa90x, libxkbcommon, pixman
|
2013-01-28 18:45:07 +00:00
|
|
|
, cairo, libxcb, libXcursor, x11, udev, libdrm2_4_40, mtdev
|
2012-12-07 11:10:14 +00:00
|
|
|
, libjpeg, pam, autoconf, automake, libtool }:
|
2012-12-02 11:42:55 +00:00
|
|
|
|
2013-01-28 18:45:07 +00:00
|
|
|
let version = "1.0.4"; 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";
|
2013-01-28 18:45:07 +00:00
|
|
|
sha256 = "1841sd6i8nq9gs1xkx8lwcg4lzy6yfcs95nnsfaf0y1ppd6c9sj2";
|
2012-12-02 11:42:55 +00:00
|
|
|
};
|
|
|
|
|
2012-12-07 11:10:14 +00:00
|
|
|
patches = [
|
|
|
|
./makefile.patch
|
|
|
|
];
|
|
|
|
|
2012-12-02 11:42:55 +00:00
|
|
|
buildInputs = [ pkgconfig wayland mesa90x libxkbcommon pixman
|
2013-01-28 18:45:07 +00:00
|
|
|
cairo libxcb libXcursor x11 udev libdrm2_4_40 mtdev
|
2012-12-07 11:10:14 +00:00
|
|
|
libjpeg pam autoconf automake libtool ];
|
|
|
|
|
|
|
|
preConfigure = "autoreconf -vfi";
|
2012-12-02 11:42:55 +00:00
|
|
|
|
2012-12-07 11:28:35 +00:00
|
|
|
# prevent install target to chown root weston-launch, which fails
|
|
|
|
configureFlags = ''
|
|
|
|
--disable-setuid-install
|
|
|
|
'';
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|