about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/janestreet/janePackage.nix
blob: 9a67db4966ce5753fabbf83b8986f0c878e23766 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ lib, fetchFromGitHub, buildDunePackage, defaultVersion ? "0.11.0" }:

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

buildDunePackage (args // {
  inherit version;

  minimumOCamlVersion = "4.04";

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

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