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