1{
2 lib,
3 stdenv,
4 fetchgit,
5 autoreconfHook,
6 pkg-config,
7 boost,
8 openssl,
9 log4shib,
10 xercesc,
11 xml-security-c,
12 xml-tooling-c,
13 zlib,
14}:
15
16stdenv.mkDerivation rec {
17 pname = "opensaml-cpp";
18 version = "3.0.1";
19
20 src = fetchgit {
21 url = "https://git.shibboleth.net/git/cpp-opensaml.git";
22 rev = version;
23 sha256 = "0ms3sqmwqkrqb92d7jy2hqwnz5yd7cbrz73n321jik0jilrwl5w8";
24 };
25
26 buildInputs = [
27 boost
28 openssl
29 log4shib
30 xercesc
31 xml-security-c
32 xml-tooling-c
33 zlib
34 ];
35 nativeBuildInputs = [
36 autoreconfHook
37 pkg-config
38 ];
39
40 configureFlags = [ "--with-xmltooling=${xml-tooling-c}" ];
41
42 env.NIX_CFLAGS_COMPILE = lib.optionalString (!stdenv.hostPlatform.isDarwin) "-std=c++14";
43
44 enableParallelBuilding = true;
45
46 meta = with lib; {
47 homepage = "https://shibboleth.net/products/opensaml-cpp.html";
48 description = "Low-level library written in C++ that provides support for producing and consuming SAML messages";
49 mainProgram = "samlsign";
50 platforms = platforms.unix;
51 license = licenses.asl20;
52 maintainers = [ ];
53 };
54}