nixpkgs/pkgs/development/ocaml-modules/prettym/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
873 B
Nix
Raw Normal View History

2021-10-26 01:41:32 +01:00
{ alcotest
, base64
, bigarray-overlap
, bigstringaf
, buildDunePackage
2023-02-25 06:46:31 +00:00
, fetchurl
2021-10-26 01:41:32 +01:00
, fmt
, jsonm
, ke
, lib
, ptime
}:
buildDunePackage rec {
pname = "prettym";
2023-02-25 06:46:31 +00:00
version = "0.0.3";
2021-10-26 01:41:32 +01:00
2023-02-25 06:46:31 +00:00
src = fetchurl {
2021-10-26 01:41:32 +01:00
url = "https://github.com/dinosaure/prettym/releases/download/${version}/prettym-${version}.tbz";
2023-02-25 06:46:31 +00:00
hash = "sha256-kXDxoRref02YpYSlvlK7a5FBX5ccbnWJQzG0axi5jwk=";
2021-10-26 01:41:32 +01:00
};
2023-02-25 06:46:31 +00:00
duneVersion = "3";
minimalOCamlVersion = "4.08";
2021-10-26 01:41:32 +01:00
propagatedBuildInputs = [
bigarray-overlap
bigstringaf
fmt
ke
];
checkInputs = [
2021-10-26 01:41:32 +01:00
ptime
alcotest
jsonm
base64
];
doCheck = true;
meta = {
description = "A simple bounded encoder to serialize human readable values and respect the 80-column constraint";
license = lib.licenses.mit;
homepage = "https://github.com/dinosaure/prettym";
2021-11-03 00:38:27 +00:00
maintainers = with lib.maintainers; [ ];
2021-10-26 01:41:32 +01:00
};
}