Skip to content

Commit 162b4bf

Browse files
authored
coqPackages.metaFetch: fix sort predicate stability (#368429)
2 parents b0abc14 + ef6ac2d commit 162b4bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkgs/build-support/coq/meta-fetch/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ let
2727
sort
2828
switch
2929
switch-if
30-
versionAtLeast
30+
versionOlder
3131
versions
3232
;
3333

@@ -112,7 +112,7 @@ let
112112
shortVersion =
113113
x:
114114
if (isString x && match "^/.*" x == null) then
115-
findFirst (v: versions.majorMinor v == x) null (sort versionAtLeast (attrNames release))
115+
findFirst (v: versions.majorMinor v == x) null (sort (l: r: versionOlder r l) (attrNames release))
116116
else
117117
null;
118118
isShortVersion = x: shortVersion x != null;

0 commit comments

Comments
 (0)