blst: init at 0.3.10

This commit is contained in:
iquerejeta 2023-03-10 14:37:43 +01:00
parent ca3ba6dc3e
commit 5bbd857794
No known key found for this signature in database
GPG key ID: AB53DAAFD68EFE78
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{ stdenv, lib, fetchFromGitHub, autoreconfHook }:
stdenv.mkDerivation ( finalAttrs: {
pname = "blst";
version = "0.3.10";
src = fetchFromGitHub {
owner = "supranational";
repo = "blst";
rev = "v${finalAttrs.version}";
hash = "sha256-xero1aTe2v4IhWIJaEDUsVDOfE77dOV5zKeHWntHogY=";
};
buildPhase = ''
runHook preBuild
./build.sh
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/lib
cp ./libblst.a $out/lib/
runHook postInstall
'';
doCheck = true;
meta = with lib; {
description = "Multilingual BLS12-381 signature library";
homepage = "https://github.com/supranational/blst";
license = licenses.isc;
maintainers = with maintainers; [ iquerejeta yvan-sraka ];
platforms = platforms.all;
};
})

View file

@ -348,6 +348,8 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) CoreServices;
};
blst = callPackage ../development/libraries/blst { };
bodyclose = callPackage ../development/tools/bodyclose { };
bootstrap-studio = callPackage ../development/web/bootstrap-studio { };