mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 12:11:28 +00:00
Upgrade ocamlPackages.yaml and add ocamlPackages.yaml-sexp (#142089)
* ocamlPackages.yaml: 2.1.0 -> 3.0.0 Also added the checkInputs. * Add ocamlPackage.yaml-sexp 3.0.0 The part of yaml that requires sexplib is moved to a second package.
This commit is contained in:
parent
57961d2b83
commit
ab8489cc40
|
@ -1,22 +1,23 @@
|
|||
{ lib, fetchurl, buildDunePackage
|
||||
, dune-configurator
|
||||
, ppx_sexp_conv
|
||||
, bos, ctypes, fmt, logs, rresult, sexplib
|
||||
, bos, ctypes, fmt, logs, rresult
|
||||
, mdx, alcotest, crowbar, junit_alcotest, ezjsonm
|
||||
}:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "yaml";
|
||||
version = "2.1.0";
|
||||
version = "3.0.0";
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/avsm/ocaml-yaml/releases/download/v${version}/yaml-v${version}.tbz";
|
||||
sha256 = "03g8vsh5jgi1cm5q78v15slgnzifp91fp7n4v1i7pa8yk0bkh585";
|
||||
sha256 = "1iws6lbnrrd5hhmm7lczfvqp0aidx5xn7jlqk2s5rjfmj9qf4j2c";
|
||||
};
|
||||
|
||||
buildInputs = [ dune-configurator ];
|
||||
propagatedBuildInputs = [ bos ctypes fmt logs ppx_sexp_conv rresult sexplib ];
|
||||
propagatedBuildInputs = [ bos ctypes rresult ];
|
||||
checkInputs = [ fmt logs mdx alcotest crowbar junit_alcotest ezjsonm ];
|
||||
|
||||
meta = {
|
||||
description = "Parse and generate YAML 1.1 files";
|
||||
|
|
13
pkgs/development/ocaml-modules/yaml/yaml-sexp.nix
Normal file
13
pkgs/development/ocaml-modules/yaml/yaml-sexp.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ lib, fetchurl, buildDunePackage, yaml, dune-configurator, ppx_sexp_conv, sexplib }:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "yaml-sexp";
|
||||
|
||||
inherit (yaml) version src useDune2;
|
||||
|
||||
propagatedBuildInputs = [ yaml ppx_sexp_conv sexplib ];
|
||||
|
||||
meta = yaml.meta // {
|
||||
description = "ocaml-yaml with sexp support";
|
||||
};
|
||||
}
|
|
@ -1408,6 +1408,8 @@ let
|
|||
|
||||
yaml = callPackage ../development/ocaml-modules/yaml { };
|
||||
|
||||
yaml-sexp = callPackage ../development/ocaml-modules/yaml/yaml-sexp.nix { };
|
||||
|
||||
yojson = callPackage ../development/ocaml-modules/yojson { };
|
||||
|
||||
z3 = callPackage ../development/ocaml-modules/z3 {
|
||||
|
|
Loading…
Reference in a new issue