Merge pull request #464 from veprbl/patch-1

overrides: matplotlib: use MPLSETUPCFG
This commit is contained in:
adisbladis 2021-12-24 15:49:19 +12:00 committed by GitHub
commit 1ede655089
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -779,18 +779,13 @@ self: super:
self.setuptools-scm-git-archive
];
postPatch = ''
cat > '' +
(if lib.versionAtLeast super.matplotlib.version "3.5.0" then "mplsetup.cfg" else "setup.cfg") +
'' <<EOF
MPLSETUPCFG = pkgs.writeText "mplsetup.cfg" ''
[libs]
system_freetype = True
system_qhull = True
'' + lib.optionalString stdenv.isDarwin ''
# LTO not working in darwin stdenv, see NixOS/nixpkgs/pull/19312
enable_lto = false
'' + ''
EOF
'';
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [