about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--release.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/release.nix b/release.nix
index 3eff28b00d30..ff164ce57208 100644
--- a/release.nix
+++ b/release.nix
@@ -80,7 +80,9 @@ let
         name = "nix";
         src = tarball;
 
-        buildInputs = [ curl perl bzip2 openssl pkgconfig sqlite boehmgc libsodium ];
+        buildInputs =
+          [ curl perl bzip2 openssl pkgconfig sqlite boehmgc ]
+          ++ lib.optional stdenv.isLinux libsodium;
 
         configureFlags = ''
           --disable-init-state