Skip to content

Commit 2cd32b6

Browse files
hussein-aitlahcencor
authored andcommitted
feat(uniond): portable blst (for old cpus)
1 parent 8c2bf96 commit 2cd32b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

uniond/uniond.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ ... }: {
22
perSystem = { pkgs, self', crane, system, ensureAtRepositoryRoot, ... }:
33
let
4-
CGO_CFLAGS = "-I${pkgs.libblst}/include -I${pkgs.libblst.src}/src -I${pkgs.libblst.src}/build -I${self'.packages.bls-eth.src}/bls/include";
4+
CGO_CFLAGS = "-I${pkgs.libblst}/include -I${pkgs.libblst.src}/src -I${pkgs.libblst.src}/build -I${self'.packages.bls-eth.src}/bls/include -O -D__BLST_PORTABLE__";
55
in
66
{
77
packages = {
@@ -51,7 +51,7 @@
5151
];
5252
} else if pkgs.stdenv.isDarwin then {
5353
# Dynamically link if we're on darwin by wrapping the program
54-
# such that the DYLD_LIBRARY_PATH includes libwasmvm
54+
# such that the DYLD_LIBRARY_PATH includes libwasmvm
5555
buildInputs = [ pkgs.makeWrapper libwasmvm pkgs.libblst ];
5656
postFixup = ''
5757
wrapProgram $out/bin/uniond \

0 commit comments

Comments
 (0)