1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/ocaml-modules/ocaml-result/default.nix
2019-09-08 23:38:31 +00:00

31 lines
814 B
Nix

{ stdenv, fetchFromGitHub, ocaml, findlib }:
let version = "1.2"; in
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-result-${version}";
src = fetchFromGitHub {
owner = "janestreet";
repo = "result";
rev = version;
sha256 = "1jwzpcmxwgkfsbjz9zl59v12hf1vv4r9kiifancn9p8gm206g3g0";
};
buildInputs = [ ocaml findlib ];
createFindlibDestdir = true;
meta = {
homepage = https://github.com/janestreet/result;
description = "Compatibility Result module";
longDescription = ''
Projects that want to use the new result type defined in OCaml >= 4.03
while staying compatible with older version of OCaml should use the
Result module defined in this library.
'';
license = stdenv.lib.licenses.bsd3;
platforms = ocaml.meta.platforms or [];
};
}