nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 fetchurl,
5 ocaml,
6 findlib,
7 ocamlbuild,
8 topkg,
9 result,
10}:
11
12stdenv.mkDerivation rec {
13 pname = "ocaml${ocaml.version}-rresult";
14 version = "0.7.0";
15 src = fetchurl {
16 url = "https://erratique.ch/software/rresult/releases/rresult-${version}.tbz";
17 sha256 = "sha256-Eap/W4NGDmBDHjFU4+MsBx1G4VHqV2DPJDd4Bb+XVUA=";
18 };
19
20 nativeBuildInputs = [
21 ocaml
22 findlib
23 ocamlbuild
24 topkg
25 ];
26 buildInputs = [ topkg ];
27
28 propagatedBuildInputs = [ result ];
29
30 strictDeps = true;
31
32 inherit (topkg) buildPhase installPhase;
33
34 meta = {
35 license = lib.licenses.isc;
36 homepage = "https://erratique.ch/software/rresult";
37 description = "Result value combinators for OCaml";
38 maintainers = [ lib.maintainers.vbgl ];
39 inherit (ocaml.meta) platforms;
40 broken = !(lib.versionAtLeast ocaml.version "4.07");
41 };
42}