on iko/ghcjs-patch-master help sign in
overlays/windows.nix: Workaround for remote-iserv libsodium.dll (#1171)

This will use libsodium-vrf if it exists, otherwise libsodium. See: https://github.com/input-output-hk/iohk-nix/pull/488

commit4af96f5d1b2e096adbf74ff9c54b16731b11bc19 authorRodney Lorrimar <rodney.lorrimar@iohk.io> dateFri 23 Jul 2021, 11:46 (5 years ago) parent674f5b0
1 file changed+1−1
overlays/windows.nix+1−1
overlays/windows.nix+1−1
@@ -73,7 +73,7 @@ final: prev:
7373 # dependencies) and then placing them somewhere where wine+remote-iserv
7474 # will find them.
7575 remote-iserv.postInstall = pkgs.lib.optionalString pkgs.stdenv.hostPlatform.isWindows (
76− let extra-libs = [ pkgs.openssl.bin pkgs.libffi pkgs.gmp pkgs.libsodium pkgs.windows.mcfgthreads pkgs.buildPackages.gcc.cc ]; in ''
76+ let extra-libs = [ pkgs.openssl.bin pkgs.libffi pkgs.gmp (pkgs.libsodium-vrf or pkgs.libsodium) pkgs.windows.mcfgthreads pkgs.buildPackages.gcc.cc ]; in ''
7777 for p in ${lib.concatStringsSep " "extra-libs}; do
7878 find "$p" -iname '*.dll' -exec cp {} $out/bin/ \;
7979 find "$p" -iname '*.dll.a' -exec cp {} $out/bin/ \;