Nix string builtins
concatStringsSep separator list- concat a list of strings with a separator between each elementfromJSON e- Convert a JSON string to a Nix valuehashString type s- Return a base-16 representation of the cryptographic hash ofsunder algorithmtype, one ofmd5orsha1/256/512isString e-trueifeis a string, otherwisefalsematch regex str- return a list of matches ifregexmatchesstr, otherwisenullreplaceStrings from to s- replaces each element offrominswith the corresponding element intosplit regex str- returns a list of elements instrnot matchingregex, interleaved with lists of elements matchingregexstringLength e- length of stringesubstring start len s- return the substring of lengthlenfrom 0-indexed positionstartin stringstoFile name s- writesto a file in the Nix storeᛦ with suffixnameand return its path; CAVEAT: The result of a derivation cannot be antiquoted in such a string, thoughwriteTextFilein nixpkgsᛦ cantoJSON e- return a JSON string representinge; standard types and data structures map to JSON naturally, but derivations and paths evaluate to store path stringstoXML e- return an XML representation ofe