Explain `concatStringsSep`

This commit is contained in:
Harsh Shandilya 2022-12-23 17:13:51 +05:30
parent 10f6ec78d7
commit 74420ede7d
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,8 @@ outputs = {
});
```
I needed a space separated list of my shell scripts to pass to shfmt and shellcheck, so I used a library function from nixpkgs called `concatStringsSep` that takes a list, and concatenates it together with the given separator. That's the `files` binding declared in the snippet above.
Here I ran into my first problem: Nix expects every derivation to generate an output which meant this doesn't actually build.
```