nixpkgs/pkgs/development/libraries/wlc/default.nix

40 lines
1.2 KiB
Nix
Raw Normal View History

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