mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
34 lines
931 B
Nix
34 lines
931 B
Nix
{ lib, stdenv, fetchFromGitHub, pkg-config, glib, jsoncpp }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libgestures";
|
|
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 = [ pkg-config ];
|
|
buildInputs = [ glib jsoncpp ];
|
|
|
|
|
|
makeFlags = [ "DESTDIR=$(out)" "LIBDIR=/lib" ];
|
|
|
|
meta = with 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 ];
|
|
};
|
|
}
|