core/pkgs/by-name/sq/sqlite/archive-version.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
192 B
Nix
Raw Normal View History

2024-05-02 00:46:19 +00:00
lib: version:
let
fragments = lib.splitVersion version;
major = lib.head fragments;
minor = lib.concatMapStrings (lib.fixedWidthNumber 2) (lib.tail fragments);
in
major + minor + "00"