2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig
|
2018-02-24 12:06:44 +00:00
|
|
|
, wayland, pixman, libxkbcommon, libinput, xcbutilwm, xcbutilimage, libGL
|
2018-07-17 21:11:16 +01:00
|
|
|
, libX11, dbus, wayland-protocols, libdrm, mesa_noglu
|
2018-03-28 14:24:26 +01:00
|
|
|
, libpthreadstubs, libXdmcp, libXext, libXfixes
|
2017-09-27 19:17:58 +01:00
|
|
|
, withOptionalPackages ? true, zlib, valgrind, doxygen
|
2015-10-24 00:32:20 +01:00
|
|
|
}:
|
|
|
|
|
2017-11-08 08:40:00 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2015-10-24 00:32:20 +01:00
|
|
|
name = "wlc-${version}";
|
2017-11-08 08:40:00 +00:00
|
|
|
version = "0.0.11";
|
2015-10-24 00:32:20 +01:00
|
|
|
|
2017-09-26 15:53:42 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Cloudef";
|
|
|
|
repo = "wlc";
|
|
|
|
rev = "v${version}";
|
2016-08-29 13:29:06 +01:00
|
|
|
fetchSubmodules = true;
|
2017-11-08 08:40:00 +00:00
|
|
|
sha256 = "1qnak907gjd35hq4b0rrhgb7kz5iwnirh8yk372yzxpgk7dq0gz9";
|
2017-09-26 15:53:42 +01:00
|
|
|
};
|
2015-10-24 00:32:20 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2018-02-24 12:06:44 +00:00
|
|
|
wayland pixman libxkbcommon libinput xcbutilwm xcbutilimage libGL
|
2018-07-17 21:11:16 +01:00
|
|
|
libX11 libXfixes dbus wayland-protocols
|
2018-03-28 14:24:26 +01:00
|
|
|
libpthreadstubs libXdmcp libXext libdrm mesa_noglu ]
|
2017-09-27 19:17:58 +01:00
|
|
|
++ stdenv.lib.optionals withOptionalPackages [ zlib valgrind doxygen ];
|
2015-10-24 00:32:20 +01:00
|
|
|
|
2016-08-29 13:29:06 +01:00
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
2017-10-24 18:48:43 +01:00
|
|
|
enableParallelBuilding = true;
|
2015-10-24 00:32:20 +01:00
|
|
|
|
2017-09-26 15:53:42 +01:00
|
|
|
meta = with stdenv.lib; {
|
2015-10-24 00:32:20 +01:00
|
|
|
description = "A library for making a simple Wayland compositor";
|
2017-09-26 18:31:30 +01:00
|
|
|
homepage = https://github.com/Cloudef/wlc;
|
2017-09-26 15:53:42 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ primeos ]; # Trying to keep it up-to-date.
|
2015-10-24 00:32:20 +01:00
|
|
|
};
|
|
|
|
}
|