about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorConstantine Glen Evans <cevans@costinet.org>2020-04-16 12:44:06 -0700
committerConstantine Glen Evans <cevans@costinet.org>2020-04-16 12:44:06 -0700
commitdfbee5e5568960f3c416367ee865e9b2f9621a58 (patch)
tree35c7073ba60b543d32a87a70edc03887540d45f7 /pkgs
parentefa52177ff87946152ffc4852dd92892b441260c (diff)
downloadnixlib-dfbee5e5568960f3c416367ee865e9b2f9621a58.tar
nixlib-dfbee5e5568960f3c416367ee865e9b2f9621a58.tar.gz
nixlib-dfbee5e5568960f3c416367ee865e9b2f9621a58.tar.bz2
nixlib-dfbee5e5568960f3c416367ee865e9b2f9621a58.tar.lz
nixlib-dfbee5e5568960f3c416367ee865e9b2f9621a58.tar.xz
nixlib-dfbee5e5568960f3c416367ee865e9b2f9621a58.tar.zst
nixlib-dfbee5e5568960f3c416367ee865e9b2f9621a58.zip
tensorflow-bin_2: fix tensorboard pip-hack collision
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/tensorflow/2/bin.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/tensorflow/2/bin.nix b/pkgs/development/python-modules/tensorflow/2/bin.nix
index f17a797b6c2e..acb5f473ec9d 100644
--- a/pkgs/development/python-modules/tensorflow/2/bin.nix
+++ b/pkgs/development/python-modules/tensorflow/2/bin.nix
@@ -159,6 +159,14 @@ in buildPythonPackage {
       done
     '';
 
+  # Upstream has a pip hack that results in bin/tensorboard being in both tensorflow
+  # and the propagated input tensorflow-tensorboard, which causes environment collisions.
+  # Another possibility would be to have tensorboard only in the buildInputs
+  # See https://github.com/NixOS/nixpkgs/pull/44381 for more information.
+  postInstall = ''
+    rm $out/bin/tensorboard
+  '';
+
   pythonImportsCheck = [
     "tensorflow"
     "tensorflow.keras"