depot/pkgs/development/ocaml-modules/encore/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

33 lines
737 B
Nix

{ lib
, buildDunePackage
, fetchurl
, fmt
, bigstringaf
, angstrom
, alcotest
}:
buildDunePackage rec {
pname = "encore";
version = "0.8";
minimalOCamlVersion = "4.08";
src = fetchurl {
url = "https://github.com/mirage/encore/releases/download/v${version}/encore-v${version}.tbz";
sha256 = "a406bc9863b04bb424692045939d6c170a2bb65a98521ae5608d25b0559344f6";
};
duneVersion = "3";
propagatedBuildInputs = [ angstrom fmt bigstringaf ];
checkInputs = [ alcotest ];
doCheck = true;
meta = {
homepage = "https://github.com/mirage/encore";
description = "Library to generate encoder/decoder which ensure isomorphism";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.vbgl ];
};
}