mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
2d640b9d6e
Unfortunately wlc 0.0.10 seems to be the cause for segfaults on sway, way-cooler and orbment. This will also build wlc with all optional packages (i.e. zlib, valgrind and doxygen).
39 lines
1.3 KiB
Nix
39 lines
1.3 KiB
Nix
{ 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
|
|
, withOptionalPackages ? true, zlib, valgrind, doxygen
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "wlc-${version}";
|
|
version = "0.0.9"; # 0.0.10 currently causes segfaults
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Cloudef";
|
|
repo = "wlc";
|
|
rev = "v${version}";
|
|
fetchSubmodules = true;
|
|
sha256 = "1r6jf64gs7n9a8129wsc0mdwhcv44p8k87kg0714rhx3g2w22asg";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
buildInputs = [
|
|
wayland pixman libxkbcommon libinput libxcb xcbutilwm xcbutilimage mesa
|
|
libdrm udev libX11 libXdamage systemd dbus_libs wayland-protocols
|
|
libpthreadstubs libXau libXdmcp libXext libXxf86vm ]
|
|
++ stdenv.lib.optionals withOptionalPackages [ zlib valgrind doxygen ];
|
|
|
|
doCheck = true;
|
|
checkTarget = "test";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A library for making a simple Wayland compositor";
|
|
homepage = https://github.com/Cloudef/wlc;
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ primeos ]; # Trying to keep it up-to-date.
|
|
};
|
|
}
|