Unverified Commit b45b859d authored by Florian Klink's avatar Florian Klink Committed by GitHub
Browse files

[Backport release-25.05] python3Packages.moderngl: fix context detection under NixOS (#408155)

parents 3a032358 1c82291c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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 = [