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.
This commit is contained in:
SharzyL
2024-10-06 00:16:09 +08:00
parent a72d8c5c4b
commit 931d7f929d
@@ -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