1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 06:01:48 +02:00

Make libsodium an optional dependency

This commit is contained in:
Eelco Dolstra 2015-02-10 11:54:06 +01:00
parent 5d9cd27dce
commit 1c972cba14
6 changed files with 28 additions and 2 deletions

View file

@ -89,6 +89,8 @@ nix-build --option binary-caches "file://$cacheDir" dependencies.nix -o $TEST_RO
grep -q "Downloading" $TEST_ROOT/log
if [ -n "$HAVE_SODIUM" ]; then
# Create a signed binary cache.
clearCache
@ -137,3 +139,5 @@ done
rm -f $NIX_STATE_DIR/binary-cache*
(! nix-store -r $outPath --option binary-caches "file://$cacheDir" --option signed-binary-caches '*' --option binary-cache-public-keys "$publicKey")
fi # HAVE_LIBSODIUM

View file

@ -25,6 +25,7 @@ export dot=@dot@
export xmllint="@xmllint@"
export SHELL="@bash@"
export PAGER=cat
export HAVE_SODIUM="@HAVE_SODIUM@"
export version=@PACKAGE_VERSION@
export system=@system@