2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, glib, jsoncpp }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-01-19 23:45:15 +00:00
|
|
|
pname = "libgestures";
|
2020-04-24 23:36:52 +00:00
|
|
|
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-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ glib jsoncpp ];
|
|
|
|
|
|
|
|
|
|
|
|
makeFlags = [ "DESTDIR=$(out)" "LIBDIR=/lib" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "ChromiumOS libgestures modified to compile for Linux";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
homepage = "https://chromium.googlesource.com/chromiumos/platform/gestures";
|
|
|
|
maintainers = with maintainers; [ kcalvinalvin ];
|
|
|
|
};
|
|
|
|
}
|