summary refs log blame commit diff
path: root/pkgs/development/tools/ocaml/merlin/default.nix
blob: cff881d1c97e5ad26d09b9688267b5ae8d83baf1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                
                                                                
 

                      
                    
 
                  

                                                                                                

    
                                 







                                                                       
 


                                                                    
 
                    
                                                                                            
                                                 

                                       

    
{ lib, fetchurl, buildDunePackage, substituteAll
, dot-merlin-reader, dune_2, yojson, csexp, result, menhirSdk }:

buildDunePackage rec {
  pname = "merlin";
  version = "3.8.0";

  src = fetchurl {
    url = "https://github.com/ocaml/merlin/releases/download/v${version}/merlin-${version}.tbz";
    sha256 = "sha256-wmBGNwXL3BduF4o1sUXtAOUHJ4xmMvsWAxl/QdNj/28=";
  };

  minimalOCamlVersion = "4.02.3";

  patches = [
    (substituteAll {
      src = ./fix-paths.patch;
      dot_merlin_reader = "${dot-merlin-reader}/bin/dot-merlin-reader";
      dune = "${dune_2}/bin/dune";
    })
  ];

  strictDeps = true;

  buildInputs = [ dot-merlin-reader yojson csexp result menhirSdk ];

  meta = with lib; {
    description = "An editor-independent tool to ease the development of programs in OCaml";
    homepage = "https://github.com/ocaml/merlin";
    license = licenses.mit;
    maintainers = [ maintainers.vbgl ];
  };
}