Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

74 lines
1.5 KiB
Nix

{
stdenv,
lib,
fetchFromGitLab,
buildDunePackage,
gmp,
pkg-config,
dune-configurator,
zarith,
integers,
stdlib-random,
alcotest,
bisect_ppx,
}:
buildDunePackage (
rec {
pname = "class_group_vdf";
version = "0.0.5";
src = fetchFromGitLab {
owner = "nomadic-labs/cryptography";
repo = "ocaml-chia-vdf";
rev = "v${version}";
hash = "sha256-/wPlS9JrQH+4kvEzsn2DCkAFhu0LMxlIIKQZ9jOJkco=";
};
minimalOCamlVersion = "4.08";
nativeBuildInputs = [
gmp
pkg-config
dune-configurator
];
buildInputs = [
dune-configurator
];
propagatedBuildInputs = [
zarith
integers
stdlib-random
];
checkInputs = [
alcotest
bisect_ppx
];
doCheck = true;
meta = {
description = "Verifiable Delay Functions bindings to Chia's VDF";
homepage = "https://gitlab.com/nomadic-labs/tezos";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.ulrikstrid ];
};
}
# Darwin sdk on intel target 10.12 (2016) at the time of writing. It is likely that host will be at least 10.14 (2018). This fix allow it to build and run on 10.14 and build on 10.12 (but don't run).
//
lib.optionalAttrs
(
lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.14"
&& stdenv.hostPlatform.isMacOS
&& stdenv.hostPlatform.isx86_64
)
{
preHook = ''
export MACOSX_DEPLOYMENT_TARGET=10.14
'';
}
)