nixpkgs/pkgs/development/tools/misc/cquery/wrapper
tobim 78e8173e57 cquery: 2018-05-01 -> 2018-08-08 (#44726)
This also extends the wrapper to explicitly set the cache
directory, since it is required for every invokation with
the `--init` option.
2018-08-09 01:31:15 +02:00

13 lines
378 B
Plaintext

#! @shell@ -e
initString="--init={\"cacheDirectory\": \"/tmp/cquery\", \"extraClangArguments\": [@standard_library_includes@"
if [ "${NIX_CFLAGS_COMPILE}" != "" ]; then
read -a cflags_array <<< ${NIX_CFLAGS_COMPILE}
initString+=$(printf ', \"%s\"' "${cflags_array[@]}")
fi
initString+="]}"
exec -a "$0" "@out@/bin/@wrapped@" "${initString}" "${extraFlagsArray[@]}" "$@"