tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
geis: fix python programs
Raymond Gauthier
8 years ago
aa54ac3b
c0d7a054
+24
-3
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
geis
default.nix
+24
-3
pkgs/development/libraries/geis/default.nix
···
1
1
{ stdenv, fetchurl
2
2
, pkgconfig
3
3
-
, python3
3
3
+
, python3Packages
4
4
+
, wrapGAppsHook
5
5
+
, atk
4
6
, dbus_libs
5
7
, evemu
6
8
, frame
9
9
+
, gdk_pixbuf
10
10
+
, gobjectIntrospection
7
11
, grail
12
12
+
, gtk3
8
13
, libX11
9
14
, libXext
10
15
, libXi
11
16
, libXtst
17
17
+
, pango
12
18
, xorgserver
13
19
}:
14
20
···
25
31
26
32
NIX_CFLAGS_COMPILE = "-Wno-format -Wno-misleading-indentation -Wno-error";
27
33
28
28
-
nativeBuildInputs = [ pkgconfig ];
29
29
-
buildInputs = [ python3 dbus_libs evemu frame grail libX11 libXext libXi libXtst xorgserver ];
34
34
+
pythonPath = with python3Packages;
35
35
+
[ pygobject3 ];
36
36
+
37
37
+
nativeBuildInputs = [ pkgconfig wrapGAppsHook python3Packages.wrapPython];
38
38
+
buildInputs = [ atk dbus_libs evemu frame gdk_pixbuf gobjectIntrospection grail
39
39
+
gtk3 libX11 libXext libXi libXtst pango python3Packages.python xorgserver
40
40
+
];
41
41
+
42
42
+
patchPhase = ''
43
43
+
substituteInPlace python/geis/geis_v2.py --replace \
44
44
+
"ctypes.util.find_library(\"geis\")" "'$out/lib/libgeis.so'"
45
45
+
'';
46
46
+
47
47
+
preFixup = ''
48
48
+
buildPythonPath "$out $pythonPath"
49
49
+
gappsWrapperArgs+=(--set PYTHONPATH "$program_PYTHONPATH")
50
50
+
'';
30
51
31
52
meta = {
32
53
description = "A library for input gesture recognition";