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:
parent
5d9cd27dce
commit
1c972cba14
6 changed files with 28 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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@
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue