nixos-configs/lib/strings/default.nix
matt1432 85348d1a6c
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: use helper funcs for hyprland conf
2024-11-20 20:12:24 -05:00

11 lines
231 B
Nix

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