mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
libgestures: init at 2.0.1
This commit is contained in:
parent
ae8c8f82bc
commit
b084a3dccc
33
pkgs/os-specific/linux/libgestures/default.nix
Normal file
33
pkgs/os-specific/linux/libgestures/default.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, glib, jsoncpp }:
|
||||
|
||||
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'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ glib jsoncpp ];
|
||||
|
||||
|
||||
makeFlags = [ "DESTDIR=$(out)" "LIBDIR=/lib" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "ChromiumOS libgestures modified to compile for Linux.";
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.linux;
|
||||
homepage = "https://chromium.googlesource.com/chromiumos/platform/gestures";
|
||||
maintainers = with maintainers; [ kcalvinalvin ];
|
||||
};
|
||||
}
|
12
pkgs/os-specific/linux/libgestures/include-fix.patch
Normal file
12
pkgs/os-specific/linux/libgestures/include-fix.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -ur a/include/gestures/include/finger_metrics.h b/include/gestures/include/finger_metrics.h
|
||||
--- a/include/gestures/include/finger_metrics.h 1970-01-01 09:00:01.000000000 +0900
|
||||
+++ b/include/gestures/include/finger_metrics.h 2018-12-01 16:58:51.590718511 +0900
|
||||
@@ -5,6 +5,8 @@
|
||||
#ifndef GESTURES_FINGER_METRICS_H_
|
||||
#define GESTURES_FINGER_METRICS_H_
|
||||
|
||||
+#include <math.h>
|
||||
+
|
||||
#include "gestures/include/gestures.h"
|
||||
#include "gestures/include/prop_registry.h"
|
||||
#include "gestures/include/vector.h"
|
Loading…
Reference in New Issue
Block a user