nixpkgs/pkgs/development/libraries/geis/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl
, pkg-config
2018-01-19 05:24:37 +00:00
, python3Packages
, wrapGAppsHook
, atk
, dbus
, evemu
, frame
2019-05-22 11:03:39 +00:00
, gdk-pixbuf
, gobject-introspection
, grail
2018-01-19 05:24:37 +00:00
, gtk3
, xorg
2018-01-19 05:24:37 +00:00
, pango
, xorgserver
}:
stdenv.mkDerivation rec {
pname = "geis";
2017-03-12 21:25:18 +00:00
version = "2.2.17";
src = fetchurl {
url = "https://launchpad.net/geis/trunk/${version}/+download/${pname}-${version}.tar.xz";
2017-03-12 21:25:18 +00:00
sha256 = "1svhbjibm448ybq6gnjjzj0ak42srhihssafj0w402aj71lgaq4a";
};
env.NIX_CFLAGS_COMPILE = "-Wno-error=misleading-indentation -Wno-error=pointer-compare";
hardeningDisable = [ "format" ];
2018-01-19 05:24:37 +00:00
pythonPath = with python3Packages;
[ pygobject3 ];
nativeBuildInputs = [ pkg-config wrapGAppsHook python3Packages.wrapPython];
2019-05-22 11:03:39 +00:00
buildInputs = [ atk dbus evemu frame gdk-pixbuf gobject-introspection grail
gtk3 xorg.libX11 xorg.libXext xorg.libXi xorg.libXtst pango python3Packages.python xorgserver
2018-01-19 05:24:37 +00:00
];
patchPhase = ''
substituteInPlace python/geis/geis_v2.py --replace \
"ctypes.util.find_library(\"geis\")" "'$out/lib/libgeis.so'"
'';
preFixup = ''
buildPythonPath "$out $pythonPath"
gappsWrapperArgs+=(--set PYTHONPATH "$program_PYTHONPATH")
'';
meta = with lib; {
description = "A library for input gesture recognition";
homepage = "https://launchpad.net/geis";
license = licenses.gpl2;
platforms = platforms.linux;
};
2015-04-28 08:54:58 +00:00
}