Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blst: init at 0.3.10 #220486

Merged
merged 4 commits into from
Jun 30, 2023
Merged
Show file tree
Hide file tree
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
15 changes: 15 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7064,6 +7064,11 @@
githubId = 1817528;
name = "Igor Polyakov";
};
iquerejeta = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put this hunk into a separate commit with the message maintainers: add NAME and sort it alphabetically.

github = "iquerejeta";
githubId = 31273774;
name = "Inigo Querejeta-Azurmendi";
};
irenes = {
name = "Irene Knapp";
email = "ireneista@gmail.com";
Expand Down Expand Up @@ -17987,6 +17992,16 @@
fingerprint = "9F19 3AE8 AA25 647F FC31 46B5 416F 303B 43C2 0AC3";
}];
};
yvan-sraka = {
email = "yvan@sraka.xyz";
github = "yvan-sraka";
githubId = 705213;
keys = [{
fingerprint = "FE9A 953C 97E4 54FE 6598 BFDD A4FB 3EAA 6F45 2379";
}];
matrix = "@/yvan:matrix.org";
name = "Yvan Sraka";
};
yvesf = {
email = "yvesf+nix@xapek.org";
github = "yvesf";
Expand Down
39 changes: 39 additions & 0 deletions pkgs/development/libraries/blst/default.nix
Original file line number Diff line number Diff line change
@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WTF, why are people doing this https://github.com/supranational/blst/blob/master/build.sh

Can't they use cmake, autoconf, meson or anything standard?!


runHook postBuild
'';
installPhase = ''
iquerejeta marked this conversation as resolved.
Show resolved Hide resolved
runHook preInstall

mkdir -p $out/lib
cp ./libblst.a $out/lib/

runHook postInstall
'';

doCheck = true;

meta = with lib; {
iquerejeta marked this conversation as resolved.
Show resolved Hide resolved
description = "Multilingual BLS12-381 signature library";
homepage = "https://github.com/supranational/blst";
license = licenses.isc;
maintainers = with maintainers; [ iquerejeta yvan-sraka ];
platforms = platforms.all;
};
})
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
iquerejeta marked this conversation as resolved.
Show resolved Hide resolved
Expand Down