python3.pkgs.tensorflow: fix evaluation when generating nix dependency graph

This commit is contained in:
Jörg Thalheim 2023-03-10 10:08:40 +01:00
parent fd613a8597
commit b6d9b11bf0

View File

@ -57,7 +57,7 @@ in buildPythonPackage {
platform = if stdenv.isDarwin then "mac" else "linux";
unit = if cudaSupport then "gpu" else "cpu";
key = "${platform}_py_${pyVerNoDot}_${unit}";
in fetchurl packages.${key};
in fetchurl (packages.${key} or {});
propagatedBuildInputs = [
astunparse