blob: c9e4c5874aefa11406bc96396168f1c174360c07 (
plain) (
blame)
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
|
{
lib,
stdenv,
fetchurl,
pkg-config,
xalanc,
xercesc,
openssl,
darwin,
}:
let
inherit (darwin.apple_sdk.frameworks) CoreFoundation CoreServices SystemConfiguration;
in
stdenv.mkDerivation (finalAttrs: {
pname = "xml-security-c";
version = "2.0.4";
src = fetchurl {
url = "mirror://apache/santuario/c-library/xml-security-c-${finalAttrs.version}.tar.gz";
hash = "sha256-p42mcg9sK6FBANJCYTHg0z6sWi26XMEb3QSXS364kAM=";
};
configureFlags = [
"--with-openssl"
"--with-xerces"
"--with-xalan"
];
nativeBuildInputs = [ pkg-config ];
buildInputs =
[
xalanc
xercesc
openssl
]
++ lib.optionals stdenv.isDarwin [
CoreFoundation
CoreServices
SystemConfiguration
];
meta = {
homepage = "https://santuario.apache.org/";
description = "C++ Implementation of W3C security standards for XML";
license = lib.licenses.gpl2;
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.jagajaga ];
};
})
|