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