blob: 0c5d59c5744413d44c58a29ac24e18efbd78be34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{
lib,
stdenv,
fetchFromGitHub,
ocaml,
findlib,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
version = "2.9.2";
pname = "ocaml${ocaml.version}-camlpdf";
src = fetchFromGitHub {
owner = "johnwhitington";
repo = "camlpdf";
tag = "v${finalAttrs.version}";
hash = "sha256-MZ3RZCAHqw0PSADxOV3CO4deAuQo2IM867f1kWSb1Wo=";
};
nativeBuildInputs = [
ocaml
findlib
];
strictDeps = true;
preInstall = ''
mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/stublibs
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "OCaml library for reading, writing and modifying PDF files";
homepage = "https://github.com/johnwhitington/camlpdf";
changelog = "https://github.com/johnwhitington/camlpdf/blob/${finalAttrs.src.rev}/Changes.txt";
license = lib.licenses.lgpl21Plus;
maintainers = with lib.maintainers; [ vbgl ];
teams = with lib.teams; [ ngi ];
broken = lib.versionOlder ocaml.version "4.10";
};
})
|