Unverified Commit 931d7f92 authored by SharzyL's avatar SharzyL
Browse files

mathematica: fix incorrect matchesDoc with #343491

With mathematica 14 came into nixpkgs with #343491, there are two types
of file names of local-doc installer, "Wolfram_*_LIN_Bndl.sh" and
"Mathematica_*_BNDL_LINUX.sh". However, the modified matchesDoc
implementation failed to match the later type, causing evaluation
errors.
parent a72d8c5c
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -51,10 +51,7 @@ let versions = callPackage ./versions.nix { };
          sublist = l: lib.sublist 0 n l;
      in lib.compareLists lib.compare (sublist as) (sublist bs) == 0;

    matchesDoc = v:
      builtins.match (if webdoc
                      then ".*[0-9]_LIN(UX)?.sh"
                      else ".*_B[Nn][Dd][Ll].sh") v.src.name != null;
    matchesDoc = v: (builtins.match ".*[0-9]_LIN(UX)?.sh" v.src.name != null) == webdoc;

in