mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
42 lines
777 B
Nix
42 lines
777 B
Nix
|
{ 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 ];
|
||
|
};
|
||
|
}
|