Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion overlays/crypto/libblst.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{ stdenv, lib, autoreconfHook, enableShared ? !stdenv.hostPlatform.isStatic && !stdenv.hostPlatform.isWindows, src }:
{ stdenv, lib, autoreconfHook, enableShared ? !stdenv.hostPlatform.isStatic && !stdenv.hostPlatform.isWindows, fetchpatch, src }:

stdenv.mkDerivation rec {
pname = "blst";
version = "0.3.14";

inherit src;

patches = [
(fetchpatch {
url = https://github.com/supranational/blst/pull/276.diff;
hash = "sha256-ccGbrtGXfwDxBXY1ahPSjsODRW1tSmCMYWqDy6mNnLg=";
})
];

# note on -D__BLST_PORTABLE__, this should allow us to have MULX, and similar
# stuff run-time detected, and as such blst built on newer hardware should still
# work on older. Notably Intel before Broadwell, and AMD before Ryzen, do not
Expand Down