mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
Merge pull request #464 from veprbl/patch-1
overrides: matplotlib: use MPLSETUPCFG
This commit is contained in:
commit
1ede655089
1 changed files with 1 additions and 6 deletions
|
@ -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 [ ]) ++ [
|
||||
|
|
Loading…
Add table
Reference in a new issue