Skip to content

Commit

Permalink
chore: get mpl 3.9 building
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed May 25, 2024
1 parent 67c3c46 commit edf57c8
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions overrides/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1544,6 +1544,7 @@ lib.composeManyExtensions [
inherit (pkgs) tk tcl wayland qhull;
inherit (pkgs.xorg) libX11;
inherit (pkgs.darwin.apple_sdk.frameworks) Cocoa;
mpl39 = lib.versionAtLeast prev.matplotlib.version "3.9.0";
in
{
XDG_RUNTIME_DIR = "/tmp";
Expand All @@ -1569,10 +1570,15 @@ lib.composeManyExtensions [
++ lib.optionals enableQt [ final.pyqt5 ]
;

nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [
pkg-config
] ++ lib.optionals (lib.versionAtLeast prev.matplotlib.version "3.5.0") [
final.setuptools-scm
dontUseMesonConfigure = mpl39;

nativeBuildInputs = old.nativeBuildInputs or [ ] ++ [ pkg-config ];

mesonFlags = lib.optionals mpl39 [
"-Dsystem-freetype=true"
"-Dsystem-qhull=true"
# broken for linux in matplotlib 3.9.0
"-Db_lto=false"
];

# Clang doesn't understand -fno-strict-overflow, and matplotlib builds with -Werror
Expand Down

0 comments on commit edf57c8

Please sign in to comment.