1 { lib, stdenv, fetchFromGitHub, pkg-config, glib, jsoncpp }:
3 stdenv.mkDerivation rec {
6 src = fetchFromGitHub {
7 owner = "hugegreenbug";
10 sha256 = "0dfvads2adzx4k8cqc1rbwrk1jm2wn9wl2jk51m26xxpmh1g0zab";
12 patches = [ ./include-fix.patch ];
15 substituteInPlace Makefile \
16 --replace -Werror -Wno-error \
17 --replace '$(DESTDIR)/usr/include' '$(DESTDIR)/include'
20 nativeBuildInputs = [ pkg-config ];
21 buildInputs = [ glib jsoncpp ];
24 makeFlags = [ "DESTDIR=$(out)" "LIBDIR=/lib" ];
27 description = "ChromiumOS libgestures modified to compile for Linux";
28 license = licenses.bsd3;
29 platforms = platforms.linux;
30 homepage = "https://chromium.googlesource.com/chromiumos/platform/gestures";
31 maintainers = with maintainers; [ kcalvinalvin ];