2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchgit, autoreconfHook, pkg-config
|
2024-05-15 15:35:15 +00:00
|
|
|
, darwin, boost, openssl, log4shib, xercesc, xml-security-c, xml-tooling-c, zlib
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "opensaml-cpp";
|
|
|
|
version = "3.0.1";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.shibboleth.net/git/cpp-opensaml.git";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0ms3sqmwqkrqb92d7jy2hqwnz5yd7cbrz73n321jik0jilrwl5w8";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost openssl log4shib xercesc xml-security-c xml-tooling-c zlib
|
2024-05-15 15:35:15 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
|
|
|
CoreServices
|
|
|
|
SystemConfiguration
|
|
|
|
]);
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [ "--with-xmltooling=${xml-tooling-c}" ];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString (!stdenv.isDarwin) "-std=c++14";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://shibboleth.net/products/opensaml-cpp.html";
|
|
|
|
description = "A low-level library written in C++ that provides support for producing and consuming SAML messages";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "samlsign";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.asl20;
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|