proverif: add interact support
This commit is contained in:
parent
fbdf0b99ff
commit
ae5cc0f6dc
@ -3,6 +3,11 @@
|
|||||||
stdenv,
|
stdenv,
|
||||||
fetchurl,
|
fetchurl,
|
||||||
ocamlPackages,
|
ocamlPackages,
|
||||||
|
makeBinaryWrapper,
|
||||||
|
graphviz,
|
||||||
|
m4,
|
||||||
|
|
||||||
|
enable_interact ? false,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -16,16 +21,44 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
||||||
nativeBuildInputs = with ocamlPackages; [
|
nativeBuildInputs =
|
||||||
|
with ocamlPackages;
|
||||||
|
[
|
||||||
ocaml
|
ocaml
|
||||||
findlib
|
findlib
|
||||||
];
|
]
|
||||||
|
++ lib.optionals enable_interact [ makeBinaryWrapper ];
|
||||||
|
|
||||||
|
buildInputs = lib.optionals enable_interact [
|
||||||
|
ocamlPackages.lablgtk
|
||||||
|
];
|
||||||
|
nativeCheckInputs = [ m4 ];
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
|
${if enable_interact then "./build" else "./build -nointeract"}
|
||||||
|
runHook postBuild
|
||||||
|
'';
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
./test
|
||||||
|
runHook postCheck
|
||||||
|
'';
|
||||||
|
|
||||||
buildPhase = "./build -nointeract";
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
install -D -t $out/bin proverif proveriftotex
|
install -D -t $out/bin proverif proveriftotex
|
||||||
install -D -t $out/share/emacs/site-lisp/ emacs/proverif.el
|
install -D -t $out/share/emacs/site-lisp/ emacs/proverif.el
|
||||||
|
|
||||||
|
${lib.optionalString enable_interact ''
|
||||||
|
install -D -t $out/bin proverif_interact
|
||||||
|
wrapProgram $out/bin/proverif_interact \
|
||||||
|
--prefix PATH : ${lib.makeBinPath [ graphviz ]}
|
||||||
|
''}
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|||||||
1
pkgs/by-name/pr/proverifWithGui/package.nix
Normal file
1
pkgs/by-name/pr/proverifWithGui/package.nix
Normal file
@ -0,0 +1 @@
|
|||||||
|
{ proverif }: proverif.override { enable_interact = true; }
|
||||||
Loading…
x
Reference in New Issue
Block a user