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

                                                                      
                                                   

                           
                  
 

                   
                               
 






                         

                    



                                                        
  
{ lib, fetchFromGitHub, buildDunePackage, defaultVersion ? "0.12.0" }:

{ pname, version ? defaultVersion, hash, ...}@args:

buildDunePackage (args // {
  inherit version;

  useDune2 = false;

  minimalOCamlVersion = "4.07";

  src = fetchFromGitHub {
    owner = "janestreet";
    repo = pname;
    rev = "v${version}";
    sha256 = hash;
  };

  strictDeps = true;

  meta = {
    license = lib.licenses.mit;
    homepage = "https://github.com/janestreet/${pname}";
  } // args.meta;
})