Skip to content

Commit

Permalink
Merge pull request #1689 from malteneuss/tensorflow-macos-tensorflow-…
Browse files Browse the repository at this point in the history
…dependency
  • Loading branch information
cpcloud committed Jun 9, 2024
2 parents 7f3af42 + edaf3d8 commit 304f823
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions overrides/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ lib.composeManyExtensions [
doCheck = false;
cmakeFlags = old.cmakeFlags or [ ] ++ [ "-DBUILD_PYTHON_BINDINGS=OFF" ];
});
tensorflowAttrs = {
postInstall = ''
rm $out/bin/tensorboard
'';
};
in

{
Expand Down Expand Up @@ -3500,17 +3505,16 @@ lib.composeManyExtensions [
);

tensorflow = prev.tensorflow.overridePythonAttrs (
_old: {
postInstall = ''
rm $out/bin/tensorboard
'';
}
_old: tensorflowAttrs
);

tensorflow-macos = prev.tensorflow-macos.overridePythonAttrs (
_old: {
inherit (final.tensorflow) postInstall;
}
# Alternative tensorflow community package for MacOS only.
#
# We don't want to create an implicit dependency on the normal
# tensorflow package, because some versions don't exist for MacOS,
# especially ARM Macs.
_old: tensorflowAttrs
);

tensorpack = prev.tensorpack.overridePythonAttrs (
Expand Down

0 comments on commit 304f823

Please sign in to comment.