python3Packages.moderngl: fix context detection under NixOS (#401498)

This commit is contained in:
Florian Klink
2025-05-18 00:35:51 +03:00
committed by GitHub
@@ -21,6 +21,12 @@ buildPythonPackage rec {
hash = "sha256-UpNqmMyy8uHW48sYUospGfaDHn4/kk54i1hzutzlEps=";
};
postPatch = ''
substituteInPlace _moderngl.py \
--replace-fail '"libGL.so"' '"${libGL}/lib/libGL.so"' \
--replace-fail '"libEGL.so"' '"${libGL}/lib/libEGL.so"'
'';
build-system = [ setuptools ];
buildInputs = [