mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 09:53:17 +00:00
12 lines
188 B
Nix
12 lines
188 B
Nix
|
lib: version:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
let
|
||
|
fragments = splitString "." version;
|
||
|
major = head fragments;
|
||
|
minor = concatMapStrings (fixedWidthNumber 2) (tail fragments);
|
||
|
in
|
||
|
|
||
|
major + minor + "00"
|