Skip to content

Commit

Permalink
adding portable build for blst
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontin committed Apr 17, 2024
1 parent 2db8932 commit 8379787
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,21 @@
xz
glibcLocales
postgresql # For pg_config
blst # required by cardano-node-emulator
## We change the way 'blst' is built so that it takes into
## account the current architecture of the processor. This
## is due to a bug where older processors (>= 10 years)
## would not be supported. This should not change anything
## on newer machines. This could be revised in the future.
(blst.overrideAttrs (_: _: {
buildPhase = ''
runHook preBuild
./build.sh -shared -D__BLST_PORTABLE__ ${
lib.optionalString stdenv.hostPlatform.isWindows
"flavour=mingw64"
}
runHook postBuild
'';
}))
]);

## Needed by `pirouette-plutusir` and `cooked`
Expand Down

0 comments on commit 8379787

Please sign in to comment.