Files
nixpkgs/pkgs/applications/science/logic/easycrypt/default.nix
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

70 lines
1.4 KiB
Nix

{
lib,
stdenv,
darwin,
fetchFromGitHub,
ocamlPackages,
why3,
python3,
}:
stdenv.mkDerivation rec {
pname = "easycrypt";
version = "2025.08";
src = fetchFromGitHub {
owner = "easycrypt";
repo = "easycrypt";
tag = "r${version}";
hash = "sha256-WUms6hh7T5/gxRLFvbJQiT1ErLr8KFilFNOMTT/fIyY=";
};
nativeBuildInputs =
with ocamlPackages;
[
dune_3
findlib
menhir
ocaml
python3.pkgs.wrapPython
]
++ lib.optional stdenv.hostPlatform.isDarwin darwin.sigtool;
buildInputs = with ocamlPackages; [
batteries
dune-build-info
dune-site
inifiles
why3
yojson
zarith
];
propagatedBuildInputs = [ why3.out ];
strictDeps = true;
postPatch = ''
substituteInPlace dune-project --replace-fail '(name easycrypt)' '(name easycrypt)(version ${version})'
'';
pythonPath = with python3.pkgs; [ pyyaml ];
installPhase = ''
runHook preInstall
dune install --prefix $out easycrypt
rm $out/bin/ec-runtest
wrapPythonProgramsIn "$out/lib/easycrypt/commands" "$pythonPath"
runHook postInstall
'';
meta = {
license = lib.licenses.mit;
maintainers = [ lib.maintainers.vbgl ];
platforms = lib.platforms.all;
homepage = "https://easycrypt.info/";
description = "Computer-Aided Cryptographic Proofs";
mainProgram = "easycrypt";
};
}