[Nix-dev] Basic string functions in nixops

Eelco Dolstra eelco.dolstra at logicblox.com
Mon Jan 25 18:08:44 CET 2016


Hi,

On 25/01/16 17:16, 4levels wrote:

> I'm currently looking (again) for the basic string functions.
> Use case: I need to limit a parametric string's length to maximum 16 characters
> (indeed, MySql usernames cannot be longer than 16 characters).
> 
> Any hints in the right direction to substring a string in case it is longer than
> 16 chars are greatly appreciated ;-)

builtins.substring 0 16 "blabla..."

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/


More information about the nix-dev mailing list