nixos-configs/lib/strings/default.nix

12 lines
240 B
Nix
Raw Normal View History

{
concatStringsSep,
stringToCharacters,
substring,
tail,
toUpper,
...
}: {
mkVersion = src: "0.0.0+" + src.shortRev;
capitalise = str: (toUpper (substring 0 1 str) + (concatStringsSep "" (tail (stringToCharacters str))));
}