diff options
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/polynomial/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/ocaml-modules/polynomial/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/polynomial/default.nix b/nixpkgs/pkgs/development/ocaml-modules/polynomial/default.nix new file mode 100644 index 000000000000..cd56175d72d9 --- /dev/null +++ b/nixpkgs/pkgs/development/ocaml-modules/polynomial/default.nix @@ -0,0 +1,30 @@ +{ lib +, fetchFromGitLab +, buildDunePackage +, zarith +, ff-sig +}: + +buildDunePackage rec { + pname = "polynomial"; + version = "0.4.0"; + duneVersion = "3"; + minimalOCamlVersion = "4.08"; + src = fetchFromGitLab { + owner = "nomadic-labs"; + repo = "cryptography/ocaml-polynomial"; + rev = version; + sha256 = "sha256-is/PrYLCwStHiQsNq5OVRCwHdXjO2K2Z7FrXgytRfAU="; + }; + + propagatedBuildInputs = [ zarith ff-sig ]; + + doCheck = false; # circular dependencies + + meta = { + description = "Polynomials over finite field"; + license = lib.licenses.mit; + homepage = "https://gitlab.com/nomadic-labs/ocaml-polynomial"; + maintainers = [ lib.maintainers.ulrikstrid ]; + }; +} |