core/pkgs/by-name/sq/sqlite/archive-version.nix
2024-05-13 22:24:10 +01:00

9 lines
192 B
Nix

lib: version:
let
fragments = lib.splitVersion version;
major = lib.head fragments;
minor = lib.concatMapStrings (lib.fixedWidthNumber 2) (lib.tail fragments);
in major + minor + "00"