From 5f97adccdc23117c87825cf410b3366e9139a74b Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sat, 14 Apr 2018 17:37:39 +0000 Subject: [PATCH 1/2] coq: move some attributes inside `passthru` --- pkgs/applications/science/logic/coq/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/science/logic/coq/default.nix b/pkgs/applications/science/logic/coq/default.nix index 2c785472114..39bed68cdf1 100644 --- a/pkgs/applications/science/logic/coq/default.nix +++ b/pkgs/applications/science/logic/coq/default.nix @@ -34,11 +34,9 @@ let self = stdenv.mkDerivation { name = "coq-${version}"; - inherit coq-version; - inherit camlp5; - inherit (ocamlPackages) ocaml; passthru = { - inherit (ocamlPackages) findlib num; + inherit coq-version camlp5; + inherit (ocamlPackages) ocaml findlib num; emacsBufferSetup = pkgs: '' ; Propagate coq paths to children (inherit-local-permanent coq-prog-name "${self}/bin/coqtop") From caec7dbb9fe4efced4d35c5496e592396bbb1b06 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sat, 14 Apr 2018 17:38:45 +0000 Subject: [PATCH 2/2] coq: fix installation of OCaml libraries --- pkgs/applications/science/logic/coq/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/science/logic/coq/default.nix b/pkgs/applications/science/logic/coq/default.nix index 39bed68cdf1..5344eda0c3a 100644 --- a/pkgs/applications/science/logic/coq/default.nix +++ b/pkgs/applications/science/logic/coq/default.nix @@ -123,8 +123,11 @@ self = stdenv.mkDerivation { buildFlags = "revision coq coqide bin/votour"; + createFindlibDestdir = true; + postInstall = '' cp bin/votour $out/bin/ + ln -s $out/lib/coq $OCAMLFIND_DESTDIR/coq ''; meta = with stdenv.lib; {