diff options
author | Claudio Bley <cbley@exa-online.de> | 2020-09-16 10:15:46 +0200 |
---|---|---|
committer | Claudio Bley <cbley@exa-online.de> | 2020-09-16 10:22:18 +0200 |
commit | 8f5bfd6af15ef83d3ff17cd278061293cd3a1f58 (patch) | |
tree | c5ae3a9539243930b3761c263aeb2a5eb6388988 /pkgs | |
parent | c12cfa428c0ee2bf2d900c32d5f0096b80236ce8 (diff) |
tensorflow: Fix compilation with numpy 1.19.x
Numpy introduced a breaking API change in version 1.19.x, see [1]. There is a simple fix [2] available in the master branch. [1]: https://github.com/tensorflow/tensorflow/issues/40688 [2]: https://github.com/tensorflow/tensorflow/commit/75ea0b31477d6ba9e990e296bbbd8ca4e7eebadf
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/tensorflow/1/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/tensorflow/1/default.nix b/pkgs/development/python-modules/tensorflow/1/default.nix index 5f65004b3d686..1aad8677ca28d 100644 --- a/pkgs/development/python-modules/tensorflow/1/default.nix +++ b/pkgs/development/python-modules/tensorflow/1/default.nix @@ -132,6 +132,13 @@ let }) ./lift-gast-restriction.patch + (fetchpatch { + # fix compilation with numpy >= 1.19 + name = "add-const-overload.patch"; + url = "https://github.com/tensorflow/tensorflow/commit/75ea0b31477d6ba9e990e296bbbd8ca4e7eebadf.patch"; + sha256 = "1xp1icacig0xm0nmb05sbrf4nw4xbln9fhc308birrv8286zx7wv"; + }) + # cuda 10.2 does not have "-bin2c-path" option anymore # https://github.com/tensorflow/tensorflow/issues/34429 ../cuda-10.2-no-bin2c-path.patch |