Hi Vladimir, I was just reading strings.nix, removeSuffix seems indeed the best candidate, thanks for confirming this!
Kind regards, Erik aka 4levels On Thu, Jun 9, 2016 at 4:32 PM Vladimír Čunát <vcu...@gmail.com> wrote: > On 06/09/2016 04:24 PM, 4levels wrote: > > 'd like to know if there's an easy way to strip off the trailing newline > > from a file read with builtins.readFile. > > lib.removeSuffix "\n" > > --Vladimir > > >
_______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev