treewide: ensure pre/post phase hooks are strings

Some derivations use lib.optional or lib.optionals when setting pre/post
phase hooks. Ensure the proper lib.optionalString is used.
This commit is contained in:
Sebastián Mancilla
2021-08-20 19:08:42 -04:00
parent 1d87f9866c
commit 8f94a33b38
34 changed files with 46 additions and 46 deletions
@@ -15,7 +15,7 @@ buildPythonPackage rec {
LC_ALL="en_US.UTF-8";
postPatch = lib.optional stdenv.isDarwin ''
postPatch = lib.optionalString stdenv.isDarwin ''
# Fake the impure dependencies pbpaste and pbcopy
mkdir bin
echo '#!${stdenv.shell}' > bin/pbpaste