Unverified Commit 3f41c09c authored by Stanisław Pitucha's avatar Stanisław Pitucha Committed by GitHub
Browse files

python3Packages.glcontext: fix darwin build (#478997)

parents 4502618d b3a61484
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
{
  stdenv,
  lib,
  buildPythonPackage,
  fetchFromGitHub,
@@ -26,7 +27,7 @@ buildPythonPackage rec {
    libX11
  ];

  postPatch = ''
  postPatch = lib.optionalString (stdenv.hostPlatform.isLinux) ''
    substituteInPlace glcontext/x11.cpp \
      --replace-fail '"libGL.so"' '"${libGL}/lib/libGL.so"' \
      --replace-fail '"libX11.so"' '"${libX11}/lib/libX11.so"'
@@ -46,7 +47,7 @@ buildPythonPackage rec {
    homepage = "https://github.com/moderngl/glcontext";
    description = "OpenGL implementation for ModernGL";
    license = lib.licenses.mit;
    platforms = lib.platforms.linux;
    platforms = lib.platforms.linux ++ lib.platforms.darwin;
    maintainers = [ ];
  };
}