Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
1.0 KiB
Nix
57 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildDunePackage,
|
|
fetchurl,
|
|
ppxlib,
|
|
alcotest,
|
|
mdx,
|
|
ppx_deriving,
|
|
yaml,
|
|
}:
|
|
|
|
let
|
|
param =
|
|
if lib.versionAtLeast ppxlib.version "0.36" then
|
|
{
|
|
version = "0.4.1";
|
|
hash = "sha256-3CvvMEOq/3I3WJ6X5EyopiaMjshZoEMPk2K4Lx0ldSo=";
|
|
}
|
|
else
|
|
{
|
|
version = "0.4.0";
|
|
hash = "sha256-MVwCFAZY9Ui1gOckfbbj882w2aloHCGmJhpL1BDUEAg=";
|
|
};
|
|
in
|
|
|
|
buildDunePackage rec {
|
|
pname = "ppx_deriving_yaml";
|
|
inherit (param) version;
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/patricoferris/ppx_deriving_yaml/releases/download/v${version}/ppx_deriving_yaml-${version}.tbz";
|
|
inherit (param) hash;
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
ppxlib
|
|
ppx_deriving
|
|
yaml
|
|
];
|
|
|
|
doCheck = true;
|
|
checkInputs = [
|
|
alcotest
|
|
mdx
|
|
];
|
|
nativeCheckInputs = [ mdx.bin ];
|
|
|
|
meta = {
|
|
description = "YAML codec generator for OCaml";
|
|
homepage = "https://github.com/patricoferris/ppx_deriving_yaml";
|
|
license = lib.licenses.isc;
|
|
maintainers = [ ];
|
|
};
|
|
}
|