3 # This adds header colors to the builds, but it rebuilds the whole
4 # world from scratch, so only use it to debug!
5 # add it as postHook in derivations
14 printf "\033[1;34m%s:\033[0m" "$1"
21 phpFpmPreStart = { app, varDir, keyFiles, actions }: ''
22 if [ ! -f "${varDir}/currentWebappDir" -o \
23 ! -f "${varDir}/currentKey" -o \
24 "${app}" != "$(cat ${varDir}/currentWebappDir 2>/dev/null)" ] \
25 || ! sha512sum -c --status ${varDir}/currentKey; then
26 pushd ${app} > /dev/null
27 ${builtins.concatStringsSep "\n " actions}
29 echo -n "${app}" > ${varDir}/currentWebappDir
30 sha512sum ${builtins.concatStringsSep " " keyFiles} > ${varDir}/currentKey