···
+ lib.optionalString stdenv.hostPlatform.isLinux ''
substituteInPlace kivy/lib/mtdev.py \
56
-
--replace-fail "LoadLibrary('libmtdev.so.1')" "LoadLibrary('${mtdev}/lib/libmtdev.so.1')"
56
+
--replace-fail "LoadLibrary('libmtdev.so.1')" "LoadLibrary('${lib.getLib mtdev}/lib/libmtdev.so.1')"
···
100
-
KIVY_NO_FILELOG = 1;
101
-
# prefer pkg-config over hardcoded framework paths
102
-
USE_OSX_FRAMEWORKS = 0;
103
-
# work around python distutils compiling C++ with $CC (see issue #26709)
104
-
env.NIX_CFLAGS_COMPILE = toString (
105
-
lib.optionals stdenv.cc.isGNU [
106
-
"-Wno-error=incompatible-pointer-types"
108
-
++ lib.optionals stdenv.hostPlatform.isDarwin [
109
-
"-I${lib.getInclude stdenv.cc.libcxx}/include/c++/v1"
101
+
KIVY_NO_FILELOG = 1;
103
+
# prefer pkg-config over hardcoded framework paths
104
+
USE_OSX_FRAMEWORKS = 0;
106
+
# work around python distutils compiling C++ with $CC (see issue #26709)
107
+
NIX_CFLAGS_COMPILE = toString (
108
+
lib.optionals stdenv.cc.isGNU [
109
+
"-Wno-error=incompatible-pointer-types"
111
+
++ lib.optionals stdenv.hostPlatform.isDarwin [
112
+
"-I${lib.getInclude stdenv.cc.libcxx}/include/c++/v1"
We cannot run tests as Kivy tries to import itself before being fully
···
pythonImportsCheck = [ "kivy" ];
changelog = "https://github.com/kivy/kivy/releases/tag/${src.tag}";
description = "Library for rapid development of hardware-accelerated multitouch applications";
homepage = "https://github.com/kivy/kivy";
124
-
license = licenses.mit;
125
-
maintainers = with maintainers; [ risson ];
128
+
license = lib.licenses.mit;
129
+
maintainers = with lib.maintainers; [ risson ];