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