1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
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 ];
};
}