Unverified Commit 79129147 authored by Reno Dakota's avatar Reno Dakota
Browse files

python312Packages.pycurl: fix darwin build

don't link with flat_namespace on darwin as it results in the runtime
linker/loader pulling in the system libcurl rather than nixpkgs one.

https://github.com/pycurl/pycurl//commit/7deb85e24981e23258ea411dcc79ca9b527a297d
parent e80a134a
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
  buildPythonPackage,
  isPyPy,
  fetchPypi,
  fetchpatch,
  pythonOlder,
  curl,
  openssl,
@@ -25,6 +26,16 @@ buildPythonPackage rec {
    hash = "sha256-jCRxr5B5rXmOFkXsCw09QiPbaHN50X3TanBjdEn4HWs=";
  };

  patches = [
    # Don't use -flat_namespace on macOS
    # https://github.com/pycurl/pycurl/pull/855 remove on next update
    (fetchpatch {
      name = "no_flat_namespace.patch";
      url = "https://github.com/pycurl/pycurl/commit/7deb85e24981e23258ea411dcc79ca9b527a297d.patch";
      hash = "sha256-tk0PQy3cHyXxFnoVYNQV+KD/07i7AUYHNJnrw6H8tHk=";
    })
  ];

  __darwinAllowLocalNetworking = true;

  preConfigure = ''