2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, glib, jsoncpp }:
|
2019-09-07 19:00:32 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libgestures-${version}";
|
|
|
|
version = "2.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hugegreenbug";
|
|
|
|
repo = "libgestures";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0dfvads2adzx4k8cqc1rbwrk1jm2wn9wl2jk51m26xxpmh1g0zab";
|
|
|
|
};
|
|
|
|
patches = [ ./include-fix.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace -Werror -Wno-error \
|
|
|
|
--replace '$(DESTDIR)/usr/include' '$(DESTDIR)/include'
|
|
|
|
'';
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2019-09-07 19:00:32 +01:00
|
|
|
buildInputs = [ glib jsoncpp ];
|
|
|
|
|
|
|
|
|
|
|
|
makeFlags = [ "DESTDIR=$(out)" "LIBDIR=/lib" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "ChromiumOS libgestures modified to compile for Linux";
|
2019-09-07 19:00:32 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
homepage = "https://chromium.googlesource.com/chromiumos/platform/gestures";
|
|
|
|
maintainers = with maintainers; [ kcalvinalvin ];
|
|
|
|
};
|
|
|
|
}
|