mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
why3: make it easy to disable IDE support
easycrypt: use why3 without IDE support
This commit is contained in:
parent
c4f01b3b73
commit
e997629cea
@ -1,6 +1,8 @@
|
||||
{ callPackage, fetchurl, lib, stdenv
|
||||
, ocamlPackages, coqPackages, rubber, hevea, emacs
|
||||
, version ? "1.7.1"
|
||||
, ideSupport ? true
|
||||
, wrapGAppsHook
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -17,8 +19,11 @@ stdenv.mkDerivation rec {
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = with ocamlPackages; [
|
||||
nativeBuildInputs = lib.optional ideSupport
|
||||
wrapGAppsHook
|
||||
++ (with ocamlPackages; [
|
||||
ocaml findlib menhir
|
||||
]) ++ [
|
||||
# Coq Support
|
||||
coqPackages.coq
|
||||
];
|
||||
@ -29,8 +34,10 @@ stdenv.mkDerivation rec {
|
||||
emacs
|
||||
# Documentation
|
||||
rubber hevea
|
||||
] ++ lib.optional ideSupport
|
||||
# GUI
|
||||
lablgtk3-sourceview3
|
||||
++ [
|
||||
# WebIDE
|
||||
js_of_ocaml js_of_ocaml-ppx
|
||||
# S-expression output for why3pp
|
||||
@ -44,7 +51,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
configureFlags = [ "--enable-verbose-make" ];
|
||||
configureFlags = [ "--enable-verbose-make"
|
||||
(lib.enableFeature ideSupport "ide")
|
||||
];
|
||||
|
||||
installTargets = [ "install" "install-lib" ];
|
||||
|
||||
|
@ -5197,7 +5197,9 @@ with pkgs;
|
||||
|
||||
easyabc = callPackage ../applications/audio/easyabc { };
|
||||
|
||||
easycrypt = callPackage ../applications/science/logic/easycrypt { };
|
||||
easycrypt = callPackage ../applications/science/logic/easycrypt {
|
||||
why3 = pkgs.why3.override { ideSupport = false; };
|
||||
};
|
||||
|
||||
easycrypt-runtest = callPackage ../applications/science/logic/easycrypt/runtest.nix { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user