mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue