3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/ppx_deriving_cmdliner/default.nix

42 lines
777 B
Nix
Raw Normal View History

2021-02-02 11:29:15 +00:00
{ lib
, buildDunePackage
, fetchFromGitHub
, alcotest
, cmdliner
, ppx_deriving
, ppxlib
}:
buildDunePackage rec {
pname = "ppx_deriving_cmdliner";
version = "0.6.0";
minimumOCamlVersion = "4.08";
useDune2 = true;
src = fetchFromGitHub {
owner = "hammerlab";
repo = "ppx_deriving_cmdliner";
rev = "v${version}";
sha256 = "19l32y2wv64d1c7fvln07dg3bkf7wf5inzjxlff7lbabskdbbras";
};
propagatedBuildInputs = [
cmdliner
ppx_deriving
ppxlib
];
doCheck = true;
checkInputs = [
alcotest
];
meta = with lib; {
description = "Ppx_deriving plugin for generating command line interfaces from types for OCaml";
inherit (src.meta) homepage;
license = licenses.asl20;
maintainers = [ maintainers.romildo ];
};
}