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

                     

                        

                                                                           
                                                                    

    
                                             






                              
                                                     
                                                      
                                           

                                                 

    
{ stdenv, lib, fetchzip, ocaml, findlib, ocamlbuild }:

let version = "3.0"; in

stdenv.mkDerivation {
  pname = "ocaml-dolog";
  inherit version;
  src = fetchzip {
    url = "https://github.com/UnixJunkie/dolog/archive/v${version}.tar.gz";
    sha256 = "0gx2s4509vkkkaikl2yp7k5x7bqv45s1y1vsy408d8rakd7yl1zb";
  };

  buildInputs = [ ocaml findlib ocamlbuild ];

  createFindlibDestdir = true;

  doCheck = true;
  checkTarget = "test";

  meta = {
    homepage = "https://github.com/UnixJunkie/dolog";
    description = "Minimalistic lazy logger in OCaml";
    platforms = ocaml.meta.platforms or [];
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ vbgl ];
  };
}