diff --git a/nix/binary-release.nix b/nix/binary-release.nix index 5da1779a47a..932572ebd2e 100644 --- a/nix/binary-release.nix +++ b/nix/binary-release.nix @@ -13,6 +13,8 @@ }: let + lib = pkgs.lib; + libsodiumWin64 = pkgs.pkgsCross.mingwW64.libsodium; name = "cardano-node-${project.version}-${platform}"; in pkgs.runCommand name { @@ -29,6 +31,9 @@ in pkgs.runCommand name { cp -Rv ${../configuration}/* ./configuration/ chmod -R +w . + ${lib.optionalString (platform == "win64") '' + cp ${libsodiumWin64}/bin/libsodium-23.dll . + ''} ${if (platform == "win64") then "zip -r $out/${name}.zip ." else "tar -czf $out/${name}.tar.gz ."