Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.2 kB · 107 lines
Nix
at llvm-cleanup
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108{ lib, stdenv, buildPythonPackage, fetchFromGitHub, pkg-config, cython_0, docutils, kivy-garden, mesa, mtdev, SDL2, SDL2_image, SDL2_ttf, SDL2_mixer, Accelerate, ApplicationServices, AVFoundation, libcxx, withGstreamer ? true, gst_all_1, packaging, pillow, pygments, requests,}:
buildPythonPackage rec { pname = "kivy"; version = "2.3.0";
src = fetchFromGitHub { owner = "kivy"; repo = "kivy"; rev = version; hash = "sha256-QJ490vjpEj/JSE9OzSvDpkCruaTFdlThUHIEAMm0BZ4="; };
nativeBuildInputs = [ pkg-config cython_0 docutils ];
buildInputs = [ SDL2 SDL2_image SDL2_ttf SDL2_mixer ] ++ lib.optionals stdenv.isLinux [ mesa mtdev ] ++ lib.optionals stdenv.isDarwin [ Accelerate ApplicationServices AVFoundation libcxx ] ++ lib.optionals withGstreamer ( with gst_all_1; [ # NOTE: The degree to which gstreamer actually works is unclear gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad ] );
propagatedBuildInputs = [ kivy-garden packaging pillow pygments requests ];
KIVY_NO_CONFIG = 1; KIVY_NO_ARGS = 1; KIVY_NO_FILELOG = 1; # prefer pkg-config over hardcoded framework paths USE_OSX_FRAMEWORKS = 0; # work around python distutils compiling C++ with $CC (see issue #26709) env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1";
postPatch = lib.optionalString stdenv.isLinux '' substituteInPlace kivy/lib/mtdev.py \ --replace "LoadLibrary('libmtdev.so.1')" "LoadLibrary('${mtdev}/lib/libmtdev.so.1')" '';
/* We cannot run tests as Kivy tries to import itself before being fully installed. */ doCheck = false; pythonImportsCheck = [ "kivy" ];
meta = with lib; { description = "Library for rapid development of hardware-accelerated multitouch applications."; homepage = "https://pypi.python.org/pypi/kivy"; license = licenses.mit; maintainers = with maintainers; [ risson ]; };}