mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
10 lines
192 B
Nix
10 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"
|