Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 45 lines 963 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 pkg-config, 6 glib, 7 jsoncpp, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "libgestures"; 12 version = "2.0.1"; 13 src = fetchFromGitHub { 14 owner = "hugegreenbug"; 15 repo = "libgestures"; 16 rev = "v${version}"; 17 sha256 = "0dfvads2adzx4k8cqc1rbwrk1jm2wn9wl2jk51m26xxpmh1g0zab"; 18 }; 19 patches = [ ./include-fix.patch ]; 20 21 postPatch = '' 22 substituteInPlace Makefile \ 23 --replace -Werror -Wno-error \ 24 --replace '$(DESTDIR)/usr/include' '$(DESTDIR)/include' 25 ''; 26 27 nativeBuildInputs = [ pkg-config ]; 28 buildInputs = [ 29 glib 30 jsoncpp 31 ]; 32 33 makeFlags = [ 34 "DESTDIR=$(out)" 35 "LIBDIR=/lib" 36 ]; 37 38 meta = with lib; { 39 description = "ChromiumOS libgestures modified to compile for Linux"; 40 license = licenses.bsd3; 41 platforms = platforms.linux; 42 homepage = "https://chromium.googlesource.com/chromiumos/platform/gestures"; 43 maintainers = with maintainers; [ kcalvinalvin ]; 44 }; 45}