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

61 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl
, pkgconfig
2018-01-19 06:24:37 +01:00
, python3Packages
, wrapGAppsHook
, atk
, dbus
, evemu
, frame
2018-01-19 06:24:37 +01:00
, gdk_pixbuf
, gobject-introspection
, grail
2018-01-19 06:24:37 +01:00
, gtk3
, libX11
, libXext
, libXi
, libXtst
2018-01-19 06:24:37 +01:00
, pango
, xorgserver
}:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "geis-${version}";
2017-03-12 22:25:18 +01:00
version = "2.2.17";
src = fetchurl {
url = "https://launchpad.net/geis/trunk/${version}/+download/${name}.tar.xz";
2017-03-12 22:25:18 +01:00
sha256 = "1svhbjibm448ybq6gnjjzj0ak42srhihssafj0w402aj71lgaq4a";
};
NIX_CFLAGS_COMPILE = [ "-Wno-error=misleading-indentation" "-Wno-error=pointer-compare" ];
hardeningDisable = [ "format" ];
2018-01-19 06:24:37 +01:00
pythonPath = with python3Packages;
[ pygobject3 ];
nativeBuildInputs = [ pkgconfig wrapGAppsHook python3Packages.wrapPython];
buildInputs = [ atk dbus evemu frame gdk_pixbuf gobject-introspection grail
2018-01-19 06:24:37 +01:00
gtk3 libX11 libXext libXi libXtst pango python3Packages.python xorgserver
];
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 = {
description = "A library for input gesture recognition";
homepage = https://launchpad.net/geis;
license = licenses.gpl2;
platforms = platforms.linux;
};
2015-04-28 10:54:58 +02:00
}