lol

ocamlPackages.bls12-381 (#129509)

ocamlPackages.ff: init at 0.4.0
tezos-rust-libs: init at 1.0
ocamlPackages.bls12-381: init at 0.3.15

authored by

Ulrik Strid and committed by
GitHub
aee00346 e57571bd

+112
+36
pkgs/development/libraries/tezos-rust-libs/default.nix
··· 1 + { lib, fetchFromGitLab, rustPlatform }: 2 + 3 + rustPlatform.buildRustPackage rec { 4 + pname = "tezos-rust-libs"; 5 + version = "1.0"; 6 + 7 + src = fetchFromGitLab { 8 + owner = "tezos"; 9 + repo = "tezos-rust-libs"; 10 + rev = "v${version}"; 11 + sha256 = "1ffkzbvb0ls4wk9205g3xh2c26cmwnl68x43gh6dm9z4xsic94v5"; 12 + }; 13 + 14 + cargoSha256 = "0dgyqfr3dvvdwdi1wvpd7v9j21740jy4zwrwiwknw7csb4bq9wfx"; 15 + 16 + preBuild = '' 17 + mkdir .cargo 18 + mv cargo-config .cargo/config 19 + ''; 20 + 21 + postInstall = '' 22 + mkdir $out/lib/tezos-rust-libs 23 + cp -r rustc-bls12-381/include $out/include 24 + cp $out/lib/librustc_bls12_381.a $out/lib/tezos-rust-libs 25 + cp $out/lib/librustzcash.a $out/lib/tezos-rust-libs 26 + ''; 27 + 28 + doCheck = true; 29 + 30 + meta = { 31 + homepage = "https://gitlab.com/tezos/tezos-rust-libs"; 32 + description = "Tezos: all rust dependencies and their dependencies"; 33 + license = lib.licenses.mit; 34 + maintainers = [ lib.maintainers.ulrikstrid ]; 35 + }; 36 + }
+38
pkgs/development/ocaml-modules/bls12-381/default.nix
··· 1 + { lib, fetchFromGitLab, buildDunePackage, ff, zarith, ctypes, tezos-rust-libs, alcotest }: 2 + 3 + buildDunePackage rec { 4 + pname = "bls12-381"; 5 + version = "0.3.15"; 6 + 7 + src = fetchFromGitLab { 8 + owner = "dannywillems"; 9 + repo = "ocaml-bls12-381"; 10 + rev = version; 11 + sha256 = "1s8n657fsl2gs01p7v2ffpcfzymavifhhpriyx1gq5qh4zvvw4vr"; 12 + }; 13 + useDune2 = true; 14 + 15 + minimalOCamlVersion = "4.08"; 16 + propagatedBuildInputs = [ 17 + ff 18 + zarith 19 + ctypes 20 + tezos-rust-libs 21 + ]; 22 + 23 + checkInputs = [ 24 + alcotest 25 + ]; 26 + 27 + # This is a hack to work around the hack used in the dune files 28 + OPAM_SWITCH_PREFIX = "${tezos-rust-libs}"; 29 + 30 + doCheck = true; 31 + 32 + meta = { 33 + homepage = "https://gitlab.com/dannywillems/ocaml-bls12-381"; 34 + description = "OCaml binding for bls12-381 from librustzcash"; 35 + license = lib.licenses.mit; 36 + maintainers = [ lib.maintainers.ulrikstrid ]; 37 + }; 38 + }
+32
pkgs/development/ocaml-modules/ff/default.nix
··· 1 + { lib, fetchFromGitLab, buildDunePackage, zarith, alcotest }: 2 + 3 + buildDunePackage rec { 4 + pname = "ff"; 5 + version = "0.4.0"; 6 + 7 + src = fetchFromGitLab { 8 + owner = "dannywillems"; 9 + repo = "ocaml-ff"; 10 + rev = version; 11 + sha256 = "1ik29srzkd0pl48p1si9p1c4f8vmx5rgm02yv2arj3vg0a1nfhdv"; 12 + }; 13 + 14 + useDune2 = true; 15 + 16 + propagatedBuildInputs = [ 17 + zarith 18 + ]; 19 + 20 + checkInputs = [ 21 + alcotest 22 + ]; 23 + 24 + doCheck = true; 25 + 26 + meta = { 27 + homepage = "https://gitlab.com/dannywillems/ocaml-ff"; 28 + description = "OCaml implementation of Finite Field operations"; 29 + license = lib.licenses.mit; 30 + maintainers = [ lib.maintainers.ulrikstrid ]; 31 + }; 32 + }
+2
pkgs/top-level/all-packages.nix
··· 1979 1979 1980 1980 tensorflow-lite = callPackage ../development/libraries/science/math/tensorflow-lite { }; 1981 1981 1982 + tezos-rust-libs = callPackage ../development/libraries/tezos-rust-libs { }; 1983 + 1982 1984 behdad-fonts = callPackage ../data/fonts/behdad-fonts { }; 1983 1985 1984 1986 bfetch = callPackage ../tools/misc/bfetch { };
+4
pkgs/top-level/ocaml-packages.nix
··· 78 78 79 79 bitv = callPackage ../development/ocaml-modules/bitv { }; 80 80 81 + bls12-381 = callPackage ../development/ocaml-modules/bls12-381 { }; 82 + 81 83 bolt = callPackage ../development/ocaml-modules/bolt { }; 82 84 83 85 bos = callPackage ../development/ocaml-modules/bos { }; ··· 370 372 farfadet = callPackage ../development/ocaml-modules/farfadet { }; 371 373 372 374 fdkaac = callPackage ../development/ocaml-modules/fdkaac { }; 375 + 376 + ff = callPackage ../development/ocaml-modules/ff { }; 373 377 374 378 fiat-p256 = callPackage ../development/ocaml-modules/fiat-p256 { }; 375 379