Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
968 B · 47 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748{ lib, buildPythonPackage, fetchFromGitHub, glfw3, pythonOlder}:
buildPythonPackage rec { pname = "glfw"; version = "2.5.9"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "FlorianRhiem"; repo = "pyGLFW"; rev = "refs/tags/v${version}"; hash = "sha256-IQcUL+vVIjI/c8/GFkmw7kMmOJG/xAlxudgspC8pDvI="; };
# Patch path to GLFW shared object patches = [ ./search-path.patch ];
postPatch = '' substituteInPlace glfw/library.py --replace "@GLFW@" '${glfw3}/lib' '';
propagatedBuildInputs = [ glfw3 ];
# Project has no tests doCheck = false;
pythonImportsCheck = [ "glfw" ];
meta = with lib; { description = "Python bindings for GLFW"; homepage = "https://github.com/FlorianRhiem/pyGLFW"; changelog = "https://github.com/FlorianRhiem/pyGLFW/blob/v${version}/CHANGELOG.md"; license = licenses.mit; maintainers = [ maintainers.McSinyx ]; };}