base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / li / libgestures / package.nix
blob1454c0c78a5024ed130230e9138b509f8e3356ef
1 { lib, stdenv, fetchFromGitHub, pkg-config, glib, jsoncpp }:
3 stdenv.mkDerivation rec {
4   pname = "libgestures";
5   version = "2.0.1";
6   src = fetchFromGitHub {
7     owner = "hugegreenbug";
8     repo = "libgestures";
9     rev = "v${version}";
10     sha256 = "0dfvads2adzx4k8cqc1rbwrk1jm2wn9wl2jk51m26xxpmh1g0zab";
11   };
12   patches = [ ./include-fix.patch ];
14   postPatch = ''
15     substituteInPlace Makefile \
16       --replace -Werror -Wno-error \
17       --replace '$(DESTDIR)/usr/include' '$(DESTDIR)/include'
18   '';
20   nativeBuildInputs = [ pkg-config ];
21   buildInputs = [ glib jsoncpp ];
24   makeFlags = [ "DESTDIR=$(out)" "LIBDIR=/lib" ];
26   meta = with 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 ];
32   };