Skip to content

Commit

Permalink
coqPackages.metaFetch: fix sort predicate stability (NixOS#368429)
Browse files Browse the repository at this point in the history
  • Loading branch information
philiptaron authored Dec 26, 2024
2 parents b0abc14 + ef6ac2d commit 162b4bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/build-support/coq/meta-fetch/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let
sort
switch
switch-if
versionAtLeast
versionOlder
versions
;

Expand Down Expand Up @@ -112,7 +112,7 @@ let
shortVersion =
x:
if (isString x && match "^/.*" x == null) then
findFirst (v: versions.majorMinor v == x) null (sort versionAtLeast (attrNames release))
findFirst (v: versions.majorMinor v == x) null (sort (l: r: versionOlder r l) (attrNames release))
else
null;
isShortVersion = x: shortVersion x != null;
Expand Down

0 comments on commit 162b4bf

Please sign in to comment.