overrides: h3 should load its C dependency from the Nix store

This commit is contained in:
Wael M. Nasreddine 2020-08-12 15:06:26 -07:00
parent 0b20328153
commit c6d00ee7df
No known key found for this signature in database
GPG key ID: FD437548E0BF0F5F

View file

@ -135,6 +135,15 @@ self: super:
}
);
h3 = super.h3.overridePythonAttrs (
old: {
preBuild = (old.preBuild or "") + ''
substituteInPlace h3/h3.py \
--replace "'{}/{}'.format(_dirname, libh3_path)" '"${pkgs.h3}/lib/libh3${pkgs.stdenv.hostPlatform.extensions.sharedLibrary}"'
'';
}
);
h5py = super.h5py.overridePythonAttrs (
old:
if old.format != "wheel" then rec {