summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/rresult/default.nix
blob: cdc3a1dba68a6c7709fb6e358c268d8a8f0fa974 (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
24
25
26
27
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, result }:

stdenv.mkDerivation rec {
  pname = "ocaml${ocaml.version}-rresult";
  version = "0.6.0";
  src = fetchurl {
    url = "https://erratique.ch/software/rresult/releases/rresult-${version}.tbz";
    sha256 = "1k69a3gvrk7f2cshwjzvk7818f0bwxhacgd14wxy6d4gmrggci86";
  };

  nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
  buildInputs = [ topkg ];

  propagatedBuildInputs = [ result ];

  strictDeps = true;

  inherit (topkg) buildPhase installPhase;

  meta = {
    license = lib.licenses.isc;
    homepage = "https://erratique.ch/software/rresult";
    description = "Result value combinators for OCaml";
    maintainers = [ lib.maintainers.vbgl ];
    inherit (ocaml.meta) platforms;
  };
}