Skip to content

Commit

Permalink
Add enableShared to libblst.nix (#559)
Browse files Browse the repository at this point in the history
This also disables shared by default for windows.

When this `blst.dll` is present, the plutus-core build hangs after it is
loaded into the TH interpreter.
  • Loading branch information
hamishmack authored Oct 5, 2023
1 parent e32040e commit 91f16fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions overlays/crypto/libblst.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, autoreconfHook, src }:
{ stdenv, lib, autoreconfHook, enableShared ? !stdenv.hostPlatform.isStatic && !stdenv.hostPlatform.isWindows, src }:

stdenv.mkDerivation rec {
pname = "blst";
Expand All @@ -8,7 +8,7 @@ stdenv.mkDerivation rec {

buildPhase = ''
./build.sh ${lib.optionalString stdenv.hostPlatform.isWindows "flavour=mingw64"}
'' + ''
'' + lib.optionalString enableShared ''
./build.sh -shared ${lib.optionalString stdenv.hostPlatform.isWindows "flavour=mingw64"}
'';
installPhase = ''
Expand Down

0 comments on commit 91f16fa

Please sign in to comment.