Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coqPackages.metaFetch: fix
sort
predicate stability
Incorrect sorting predicate was found as part of NixOS/nix#12106 where `nix` was crashing on the code like: $ nix eval --expr 'builtins.sort (a: b: true) [ 1 2 3 ]' ... Aborted (core dumped) Note: the crash happens here because sorting predicate does not implement `lessThan` and triggers assertion failures for `std::stable_sort` that backs `builtins.sort`. The change restores `lessThan` semantic for `version sorting`.
- Loading branch information