Similarly, it could be written in one line as 

```
preInstall='' mkdir -p "$out"; '';
```
(note the double-quotes " and repeated single quotes '')