summaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/process/default.nix
blob: ad1c2d96b6c08f9ed3d857cf05457c33723a42d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  stdenv,
  lib,
  fetchFromGitHub,
  ocaml,
  findlib,
  ocamlbuild,
}:

stdenv.mkDerivation rec {
  pname = "ocaml${ocaml.version}-process";
  version = "0.2.1";

  src = fetchFromGitHub {
    owner = "dsheets";
    repo = "ocaml-process";
    rev = version;
    sha256 = "0m1ldah5r9gcq09d9jh8lhvr77910dygx5m309k1jm60ah9mdcab";
  };

  nativeBuildInputs = [
    ocaml
    findlib
    ocamlbuild
  ];
  strictDeps = true;

  createFindlibDestdir = true;

  meta = {
    description = "Easy process control in OCaml";
    license = lib.licenses.isc;
    maintainers = [ lib.maintainers.vbgl ];
    inherit (src.meta) homepage;
    inherit (ocaml.meta) platforms;
  };
}