nixos-configs/lib/strings/default.nix
matt1432 318ccef645
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: split up lib in multiple folders
2024-11-20 17:07:10 -05:00

11 lines
240 B
Nix

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