21 lines
402 B
Nix
21 lines
402 B
Nix
let
|
|
v."8.0.0.0" = {
|
|
hash = "sha256-5YUX+w4n3nBhAkdgjF9D5yY/jzRKxpW+mTQCBluzsVI=";
|
|
rev = "v8";
|
|
};
|
|
current =
|
|
lib:
|
|
lib.lists.fold (acc: v: if lib.strings.versionOlder acc v then v else acc) "0.0.0" (
|
|
builtins.attrNames v
|
|
);
|
|
in
|
|
{
|
|
lib,
|
|
version ? current lib,
|
|
hash ? v.${version}.hash,
|
|
rev ? v.${version}.rev or "v${version}",
|
|
...
|
|
}:
|
|
{
|
|
inherit version hash rev;
|
|
}
|