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

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

buildDunePackage (args // {
  inherit version buildInputs;

  minimumOCamlVersion = "4.04";

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

  strictDeps = true;

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