Files
nixpkgs/pkgs/development/ocaml-modules/encore/default.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

43 lines
1.0 KiB
Nix

{
lib,
buildDunePackage,
fetchurl,
fmt,
bigstringaf,
angstrom,
alcotest,
}:
buildDunePackage rec {
pname = "encore";
version = "0.8.1";
minimalOCamlVersion = "4.07";
src = fetchurl {
url = "https://github.com/mirage/encore/releases/download/v${version}/encore-${version}.tbz";
hash = "sha256-qg6heSBc6OSfb7vZxEi4rrKh+nx+ffnsCfVvhVR3yY0=";
};
propagatedBuildInputs = [
angstrom
fmt
bigstringaf
];
checkInputs = [ alcotest ];
doCheck = true;
meta = {
homepage = "https://github.com/mirage/encore";
description = "Library to generate encoder/decoder which ensure isomorphism";
longDescription = ''
Encore is a little library to provide an interface to generate an angstrom decoder and
an internal encoder from a shared description. The goal is to ensure a dual isomorphism
between them.
'';
changelog = "https://raw.githubusercontent.com/mirage/encore/refs/tags/v${version}/CHANGES.md";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.vbgl ];
};
}