mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
32 lines
792 B
Nix
32 lines
792 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, glfw3 }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "glfw";
|
|
version = "2.5.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "FlorianRhiem";
|
|
repo = "pyGLFW";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-zusVOhZfJyUpftvrUSLZJl7mG5AEGMLGXMOojFnEsH0=";
|
|
};
|
|
|
|
# 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";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.McSinyx ];
|
|
};
|
|
}
|