forked from nix-ocaml/nix-overlays
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Start testing 4.14 * hopefully this unbreaks everything? * eliom too * add missing patch file * upgrade sources and override dune_3 * fix batteries * fix 4.14 x-compilation * misc multicore fixes * more multicore fixes * remove duplicate * fix merlin and make reason work for 5.00 * clean up, ulrik was right about uucp
- Loading branch information
1 parent
4266edd
commit 6f4004d
Showing
12 changed files
with
226 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,32 @@ | ||
{ lib | ||
, substituteAll | ||
, ocaml | ||
, dune_2 | ||
, dune_3 | ||
, buildDunePackage | ||
, dot-merlin-reader | ||
, yojson | ||
, csexp | ||
, result | ||
}: | ||
|
||
# let camlp-streams-patch = if (lib.versionOlder "5.00" ocaml.version)a then | ||
|
||
# in | ||
buildDunePackage { | ||
pname = "merlin"; | ||
inherit (dot-merlin-reader) src version; | ||
|
||
patches = [ | ||
(substituteAll { | ||
src = ./fix-paths.patch; | ||
dot_merlin_reader = "${dot-merlin-reader}/bin/dot-merlin-reader"; | ||
dune = "${dune_2}/bin/dune"; | ||
}) | ||
] ++ lib.optional (lib.versionOlder "4.12" ocaml.version) ./camlp-streams.patch; | ||
postPatch = '' | ||
substituteInPlace src/kernel/mconfig_dot.ml --replace \ | ||
'let prog = "dot-merlin-reader"' \ | ||
'let prog = "${dot-merlin-reader}/bin/dot-merlin-reader"' | ||
substituteInPlace src/kernel/mconfig_dot.ml --replace \ | ||
'let prog = "dune"' \ | ||
'let prog = "${dune_3}/bin/dune"' | ||
substituteInPlace src/frontend/ocamlmerlin/dune --replace \ | ||
'(libraries ' \ | ||
'(libraries camlp-streams ' | ||
''; | ||
|
||
buildInputs = [ dot-merlin-reader yojson csexp result ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.