easycrypt: fix runtest command

The `ec-runtest` program is still available as a separate
easycrypt-runtest package, but the `easycrypt runtest` command now also
works out-of-the-box.

authored by

Vincent Laporte and committed by
Vincent Laporte
181a9fe1 39533b0a

+5 -1
+5 -1
pkgs/applications/science/logic/easycrypt/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, ocamlPackages, why3 }: 1 + { lib, stdenv, fetchFromGitHub, ocamlPackages, why3, python3 }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "easycrypt"; ··· 16 16 findlib 17 17 menhir 18 18 ocaml 19 + python3.pkgs.wrapPython 19 20 ]; 20 21 buildInputs = with ocamlPackages; [ 21 22 batteries ··· 33 34 substituteInPlace dune-project --replace '(name easycrypt)' '(name easycrypt)(version ${version})' 34 35 ''; 35 36 37 + pythonPath = with python3.pkgs; [ pyyaml ]; 38 + 36 39 installPhase = '' 37 40 runHook preInstall 38 41 dune install --prefix $out ${pname} 39 42 rm $out/bin/ec-runtest 43 + wrapPythonProgramsIn "$out/lib/easycrypt/commands" "$pythonPath" 40 44 runHook postInstall 41 45 ''; 42 46