1{
2 lib,
3 fetchFromGitHub,
4 buildDunePackage,
5 gitUpdater,
6 alcotest,
7 crowbar,
8}:
9
10buildDunePackage rec {
11 pname = "patch";
12 version = "3.0.0";
13
14 minimalOCamlVersion = "4.08";
15
16 src = fetchFromGitHub {
17 owner = "hannesm";
18 repo = "patch";
19 tag = "v${version}";
20 hash = "sha256-WIleUxfGp8cvQHYAyRRI6S/MSP4u0BbEyAqlRxCb/To=";
21 };
22
23 checkInputs = [
24 alcotest
25 crowbar
26 ];
27
28 passthru.updateScript = gitUpdater { };
29
30 meta = {
31 description = "Patch library purely in OCaml";
32 longDescription = ''
33 This is a library which parses unified diff and git diff output, and can apply a patch in memory.
34 '';
35 homepage = "https://github.com/hannesm/patch";
36 maintainers = with lib.maintainers; [ r17x ];
37 license = lib.licenses.isc;
38 };
39}