blob: 7a93bb03fc7c47c81fc4510f46ca997520776626 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
{
lib,
stdenv,
fetchFromGitHub,
boost,
libxml2,
pkg-config,
docbook_xml_dtd_43,
curl,
autoreconfHook,
cppunit,
xmlto,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libcmis";
version = "0.6.3";
src = fetchFromGitHub {
owner = "tdf";
repo = "libcmis";
tag = "v${finalAttrs.version}";
hash = "sha256-chLY9tbhVPIiP+twsNM2SM7Bqyau/evQGKHfjlac6ys=";
};
postPatch = ''
substituteInPlace doc/cmis-client.xml.in \
--replace-fail "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" \
"${docbook_xml_dtd_43}/xml/dtd/docbook/docbookx.dtd"
'';
nativeBuildInputs = [
autoreconfHook
pkg-config
xmlto
];
buildInputs = [
boost
libxml2
curl
cppunit
];
configureFlags = [
"--disable-werror"
"--with-boost=${boost.dev}"
];
doCheck = true;
enableParallelBuilding = true;
meta = {
changelog = "https://github.com/tdf/libcmis/blob/${finalAttrs.src.tag}/NEWS";
description = "C++ client library for the CMIS interface";
homepage = "https://github.com/tdf/libcmis";
license = lib.licenses.gpl2;
mainProgram = "cmis-client";
platforms = lib.platforms.unix;
};
})
|