about summary refs log tree commit diff
path: root/lib/default.nix
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2022-12-10 15:56:30 +0100
committerNaïm Favier <n@monade.li>2022-12-10 15:56:30 +0100
commited0b8c26f127525a9ee66f895bdc894cdaa5d685 (patch)
tree608169ac5743d8693a16f34cb8206a62f243f3db /lib/default.nix
parentf8fc2323e9ba9d25aebef0a15cec5ca5cabdc495 (diff)
lib/strings: add `concatLines`
Like `unlines` from Haskell.

The aim is to replace the `concatStringsSep "\n"` pattern for generated
files, which doesn't add a final newline.
Diffstat (limited to 'lib/default.nix')
-rw-r--r--lib/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/default.nix b/lib/default.nix
index 68e5b8dea1eb8..48d066e17cccd 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -93,7 +93,7 @@ let
       subtractLists mutuallyExclusive groupBy groupBy';
     inherit (self.strings) concatStrings concatMapStrings concatImapStrings
       intersperse concatStringsSep concatMapStringsSep
-      concatImapStringsSep makeSearchPath makeSearchPathOutput
+      concatImapStringsSep concatLines makeSearchPath makeSearchPathOutput
       makeLibraryPath makeBinPath optionalString
       hasInfix hasPrefix hasSuffix stringToCharacters stringAsChars escape
       escapeShellArg escapeShellArgs isValidPosixName toShellVar toShellVars