2017-09-26 17:53:42 +03:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig
|
|
|
|
, wayland, pixman, libxkbcommon, libinput, libxcb, xcbutilwm, xcbutilimage, mesa
|
|
|
|
, libdrm, udev, libX11, libXdamage, systemd, dbus_libs, wayland-protocols
|
|
|
|
, libpthreadstubs, libXau, libXdmcp, libXext, libXxf86vm
|
2017-09-27 21:17:58 +03:00
|
|
|
, withOptionalPackages ? true, zlib, valgrind, doxygen
|
2015-10-24 02:32:20 +03:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "wlc-${version}";
|
2017-10-16 17:18:18 +03:00
|
|
|
version = "0.0.10";
|
2015-10-24 02:32:20 +03:00
|
|
|
|
2017-09-26 17:53:42 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Cloudef";
|
|
|
|
repo = "wlc";
|
|
|
|
rev = "v${version}";
|
2016-08-29 15:29:06 +03:00
|
|
|
fetchSubmodules = true;
|
2017-10-16 17:18:18 +03:00
|
|
|
sha256 = "09kvwhrpgkxlagn9lgqxc80jbg56djn29a6z0n6h0dsm90ysyb2k";
|
2017-09-26 17:53:42 +03:00
|
|
|
};
|
2015-10-24 02:32:20 +03:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2017-09-26 17:53:42 +03:00
|
|
|
wayland pixman libxkbcommon libinput libxcb xcbutilwm xcbutilimage mesa
|
|
|
|
libdrm udev libX11 libXdamage systemd dbus_libs wayland-protocols
|
2017-09-27 21:17:58 +03:00
|
|
|
libpthreadstubs libXau libXdmcp libXext libXxf86vm ]
|
|
|
|
++ stdenv.lib.optionals withOptionalPackages [ zlib valgrind doxygen ];
|
2015-10-24 02:32:20 +03:00
|
|
|
|
2016-08-29 15:29:06 +03:00
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
2015-10-24 02:32:20 +03:00
|
|
|
|
2017-09-26 17:53:42 +03:00
|
|
|
meta = with stdenv.lib; {
|
2015-10-24 02:32:20 +03:00
|
|
|
description = "A library for making a simple Wayland compositor";
|
2017-09-26 20:31:30 +03:00
|
|
|
homepage = https://github.com/Cloudef/wlc;
|
2017-09-26 17:53:42 +03:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ primeos ]; # Trying to keep it up-to-date.
|
2015-10-24 02:32:20 +03:00
|
|
|
};
|
|
|
|
}
|