mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
ocamlPackages.result: init at 1.1
This commit is contained in:
parent
cd897f657c
commit
abfc9e2afa
30
pkgs/development/ocaml-modules/ocaml-result/default.nix
Normal file
30
pkgs/development/ocaml-modules/ocaml-result/default.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{ stdenv, fetchFromGitHub, ocaml, findlib }:
|
||||
|
||||
let version = "1.1"; in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "ocaml-result-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "janestreet";
|
||||
repo = "result";
|
||||
rev = "${version}";
|
||||
sha256 = "05y07rxdbkaxsc8cy458y00gq05i8gp35hhwg1b757mam21ccxxz";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
@ -4920,6 +4920,8 @@ let
|
||||
|
||||
re2 = callPackage ../development/ocaml-modules/re2 { };
|
||||
|
||||
result = callPackage ../development/ocaml-modules/ocaml-result { };
|
||||
|
||||
sequence = callPackage ../development/ocaml-modules/sequence { };
|
||||
|
||||
tuntap = callPackage ../development/ocaml-modules/tuntap { };
|
||||
|
Loading…
Reference in New Issue
Block a user