summary refs log blame commit diff
path: root/pkgs/development/ocaml-modules/ppx_cstubs/default.nix
blob: 1b5e96a2d8dec8e44dd3c0bed495875e7797451e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                  
         



                       
                    
 

                               
                    




                         
                                                                 

    
                               
 


                   
           



            



                           



                                                      
                                                                                 
                                                                              
                                  


                                         
{ lib
, fetchFromGitHub
, buildDunePackage
, bigarray-compat
, containers
, cppo
, ctypes
, integers
, num
, ppxlib
, re
, findlib
}:

buildDunePackage rec {
  pname = "ppx_cstubs";
  version = "0.7.0";

  minimalOCamlVersion = "4.08";

  duneVersion = "3";

  src = fetchFromGitHub {
    owner = "fdopen";
    repo = "ppx_cstubs";
    rev = version;
    hash = "sha256-qMmwRWCIfNyhCQYPKLiufnb57sTR3P+WInOqtPDywFs=";
  };

  nativeBuildInputs = [ cppo ];

  buildInputs = [
    bigarray-compat
    containers
    findlib
    integers
    num
    ppxlib
    re
  ];

  propagatedBuildInputs = [
    ctypes
  ];

  meta = with lib; {
    homepage = "https://github.com/fdopen/ppx_cstubs";
    changelog = "https://github.com/fdopen/ppx_cstubs/raw/${version}/CHANGES.md";
    description = "Preprocessor for easier stub generation with ocaml-ctypes";
    license = licenses.lgpl21Plus;
    maintainers = [ maintainers.osener ];
  };
}