nixpkgs-suyu/pkgs/development/libraries/sqlite/archive-version.nix

12 lines
188 B
Nix
Raw Normal View History

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