diff --git a/nix.shell b/nix.shell index 1e75b7b6f5..57ba5d1039 100644 --- a/nix.shell +++ b/nix.shell @@ -25,7 +25,9 @@ let setuptools_scm>=3.2.0 setuptools_scm_git_archive pytest + pytest-cov hypothesis + tox ''; }; @@ -38,5 +40,12 @@ in git stdenv ruststable + stdenv.cc.cc.lib ]; + + shellHook = '' + # workaround for https://github.com/NixOS/nixpkgs/blob/48dfc9fa97d762bce28cc8372a2dd3805d14c633/doc/languages-frameworks/python.section.md#python-setuppy-bdist_wheel-cannot-create-whl + export SOURCE_DATE_EPOCH=315532800 # 1980 + export LD_LIBRARY_PATH="${stdenv.cc.cc.lib}/lib64:$LD_LIBRARY_PATH"; + ''; }