Skip to content

Commit

Permalink
easycrypt: init at 2022.04
Browse files Browse the repository at this point in the history
  • Loading branch information
vbgl committed May 5, 2022
1 parent 602292f commit b20934a
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
50 changes: 50 additions & 0 deletions pkgs/applications/science/logic/easycrypt/default.nix
@@ -0,0 +1,50 @@
{ lib, stdenv, fetchFromGitHub, ocamlPackages, why3 }:

stdenv.mkDerivation rec {
pname = "easycrypt";
version = "2022.04";

src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "r${version}";
sha256 = "sha256:09rdwcj70lkamkhd895p284rfpz4bcnsf55mcimhiqncd2a21ml7";
};

nativeBuildInputs = with ocamlPackages; [
dune_3
findlib
menhir
ocaml
];
buildInputs = with ocamlPackages; [
batteries
dune-build-info
inifiles
yojson
zarith
];

propagatedBuildInputs = [ why3 ];

strictDeps = true;

postPatch = ''
substituteInPlace dune-project --replace '(name easycrypt)' '(name easycrypt)(version ${version})'
'';

installPhase = ''
runHook preInstall
dune install --prefix $out ${pname}
rm $out/bin/ec-runtest
runHook postInstall
'';

meta = {
license = lib.licenses.mit;
maintainers = [ lib.maintainers.vbgl ];
platforms = lib.platforms.all;
homepage = "https://easycrypt.info/";
description = "Computer-Aided Cryptographic Proofs";
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -3362,6 +3362,8 @@ with pkgs;

earlyoom = callPackage ../os-specific/linux/earlyoom { };

easycrypt = callPackage ../applications/science/logic/easycrypt { };

EBTKS = callPackage ../development/libraries/science/biology/EBTKS { };

ecasound = callPackage ../applications/audio/ecasound { };
Expand Down

0 comments on commit b20934a

Please sign in to comment.