mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
9999bf7a21
gobject-introspection should be in nativeBuildInputs for cross to work properly (so propagations and hook work properly)
57 lines
1.3 KiB
Nix
57 lines
1.3 KiB
Nix
{ lib, stdenv, fetchurl
|
|
, pkg-config
|
|
, python3Packages
|
|
, wrapGAppsHook
|
|
, atk
|
|
, dbus
|
|
, evemu
|
|
, frame
|
|
, gdk-pixbuf
|
|
, gobject-introspection
|
|
, grail
|
|
, gtk3
|
|
, xorg
|
|
, pango
|
|
, xorgserver
|
|
}:
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "geis";
|
|
version = "2.2.17";
|
|
|
|
src = fetchurl {
|
|
url = "https://launchpad.net/geis/trunk/${version}/+download/${pname}-${version}.tar.xz";
|
|
sha256 = "1svhbjibm448ybq6gnjjzj0ak42srhihssafj0w402aj71lgaq4a";
|
|
};
|
|
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-error=misleading-indentation -Wno-error=pointer-compare";
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
pythonPath = with python3Packages;
|
|
[ pygobject3 ];
|
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook python3Packages.wrapPython gobject-introspection ];
|
|
buildInputs = [ atk dbus evemu frame gdk-pixbuf grail
|
|
gtk3 xorg.libX11 xorg.libXext xorg.libXi xorg.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 = with lib; {
|
|
description = "A library for input gesture recognition";
|
|
homepage = "https://launchpad.net/geis";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|