2017-02-24 00:23:01 +01:00
|
|
|
{ lib, stdenv, fetchgit, cmake, pkgconfig
|
2015-10-24 01:32:20 +02:00
|
|
|
, glibc, wayland, pixman, libxkbcommon, libinput, libxcb, xcbutilwm, xcbutilimage, mesa, libdrm, udev, systemd, dbus_libs
|
2016-02-10 17:03:21 +01:00
|
|
|
, libpthreadstubs, libX11, libXau, libXdmcp, libXext, libXdamage, libxshmfence, libXxf86vm
|
2017-02-24 00:23:01 +01:00
|
|
|
, wayland-protocols
|
2015-10-24 01:32:20 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "wlc-${version}";
|
2017-07-02 12:52:46 +02:00
|
|
|
version = "0.0.9";
|
2015-10-24 01:32:20 +02:00
|
|
|
|
2016-08-29 14:29:06 +02:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/Cloudef/wlc";
|
|
|
|
rev = "refs/tags/v${version}";
|
2017-07-02 12:52:46 +02:00
|
|
|
sha256 = "1r6jf64gs7n9a8129wsc0mdwhcv44p8k87kg0714rhx3g2w22asg";
|
2016-08-29 14:29:06 +02:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
2015-10-24 01:32:20 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
wayland pixman libxkbcommon libinput libxcb xcbutilwm xcbutilimage mesa libdrm udev
|
2017-02-24 00:23:01 +01:00
|
|
|
libX11 libXdamage systemd dbus_libs wayland-protocols
|
2015-10-24 01:32:20 +02:00
|
|
|
];
|
|
|
|
|
2016-08-29 14:29:06 +02:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
2015-10-24 01:32:20 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A library for making a simple Wayland compositor";
|
2016-06-01 20:35:49 +02:00
|
|
|
homepage = https://github.com/Cloudef/wlc;
|
2015-10-24 01:32:20 +02:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|