Commit 7c5d24b3 authored by Someone Serge's avatar Someone Serge
Browse files

python311Packages.jaxlib: nuke non-reproducible artifacts

Bazel, in hands of Google, can't even fetch reproducibly.
Cf. https://github.com/NixOS/nixpkgs/issues/321920#issuecomment-2184940546
parent c00f2037
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -374,13 +374,20 @@ let
      sha256 =
        (
          if cudaSupport then
            { x86_64-linux = "sha256-vUoAPkYKEnHkV4fw6BI0mCeuP2e8BMCJnVuZMm9LwSA="; }
            { x86_64-linux = "sha256-Uf0VMRE0jgaWEYiuphWkWloZ5jMeqaWBl3lSvk2y1HI="; }
          else
            {
              x86_64-linux = "sha256-R5Bm+0GYN1zJ1aEUBW76907MxYKAIawHHJoIb1RdsKE=";
              aarch64-linux = "sha256-P5JEmJljN1DeRA0dNkzyosKzRnJH+5SD2aWdV5JsoiY=";
              x86_64-linux = "";
              aarch64-linux = "";
            }
        ).${effectiveStdenv.system} or (throw "jaxlib: unsupported system: ${effectiveStdenv.system}");

        # Non-reproducible fetch https://github.com/NixOS/nixpkgs/issues/321920#issuecomment-2184940546
        preInstall = ''
          cat << \EOF > "$bazelOut/external/go_sdk/versions.json"
          []
          EOF
        '';
    };

    buildAttrs = {