depot/third_party/nixpkgs/pkgs/development/libraries/sqlite/archive-version.nix

10 lines
192 B
Nix
Raw Normal View History

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