diff options
| author | Gaëtan Gilbert | 2018-07-06 22:15:27 +0200 |
|---|---|---|
| committer | Gaëtan Gilbert | 2018-07-06 22:15:27 +0200 |
| commit | 49a587ec6e6a792bb246dffe16b6fe70bc47897e (patch) | |
| tree | 5c60601195e5f968ea43bf3a60de0e470b7af2b7 /default.nix | |
| parent | fa8008b476b61da46a7bd6cc80ab4f0204c3b26e (diff) | |
| parent | c2ab1e847670190d5c42d280c4375a73478d191d (diff) | |
Merge PR #8001: Cache the build of the Nix package using Cachix.
Diffstat (limited to 'default.nix')
| -rw-r--r-- | default.nix | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/default.nix b/default.nix index 1be2740817..d9317bccaf 100644 --- a/default.nix +++ b/default.nix @@ -30,6 +30,9 @@ , buildIde ? true , buildDoc ? true , doInstallCheck ? true +, shell ? false + # We don't use lib.inNixShell because that would also apply + # when in a nix-shell of some package depending on this one. }: with pkgs; @@ -58,13 +61,13 @@ stdenv.mkDerivation rec { optional (!versionAtLeast ocaml.version "4.07") ncurses ++ [ ocamlPackages.ounit rsync which ] ) - ++ optionals lib.inNixShell ( + ++ optionals shell ( [ jq curl git gnupg ] # Dependencies of the merging script ++ (with ocamlPackages; [ merlin ocp-indent ocp-index ]) # Dev tools ); src = - if lib.inNixShell then null + if shell then null else with builtins; filterSource (path: _: @@ -86,4 +89,18 @@ stdenv.mkDerivation rec { installCheckTarget = [ "check" ]; + passthru = { inherit ocamlPackages; }; + + meta = { + description = "Coq proof assistant"; + longDescription = '' + Coq is a formal proof management system. It provides a formal language + to write mathematical definitions, executable algorithms and theorems + together with an environment for semi-interactive development of + machine-checked proofs. + ''; + homepage = http://coq.inria.fr; + license = licenses.lgpl21; + }; + } |
