Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
967 B · 48 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849{ lib, fetchFromGitHub, buildPythonPackage, cython, pkg-config, libgbinder, setuptools,}:
buildPythonPackage rec { pname = "gbinder-python"; version = "1.1.2"; pyproject = true;
src = fetchFromGitHub { owner = "erfanoabdi"; repo = "gbinder-python"; tag = version; hash = "sha256-up1EDuR05a7TlCErd2BXkp01oqi6hEskt7xVxsJqquM="; };
build-system = [ cython setuptools ];
buildInputs = [ libgbinder ];
nativeBuildInputs = [ pkg-config ];
postPatch = '' # Fix pkg-config name for cross-compilation substituteInPlace setup.py \ --replace-fail "pkg-config" "$PKG_CONFIG" \ --replace-fail "USE_CYTHON = False" "USE_CYTHON = True" '';
meta = { description = "Python bindings for libgbinder"; homepage = "https://github.com/erfanoabdi/gbinder-python"; license = lib.licenses.gpl3; platforms = lib.platforms.linux; maintainers = with lib.maintainers; [ ]; };}