shibboleth-sp: fix build on darwin

This commit is contained in:
Elian Doran 2024-05-18 18:14:08 +03:00
parent 9cc583b9d1
commit 5ddb74a319
No known key found for this signature in database

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchgit, autoreconfHook, boost, fcgi, openssl, opensaml-cpp, log4shib, pkg-config, xercesc, xml-security-c, xml-tooling-c }:
{ lib, stdenv, fetchgit, autoreconfHook, boost, fcgi, openssl, opensaml-cpp, log4shib, pkg-config, xercesc, xml-security-c, xml-tooling-c, darwin }:
stdenv.mkDerivation rec {
pname = "shibboleth-sp";
@ -11,17 +11,20 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ boost fcgi openssl opensaml-cpp log4shib xercesc xml-security-c xml-tooling-c ];
buildInputs = [ boost fcgi openssl opensaml-cpp log4shib xercesc xml-security-c xml-tooling-c ]
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
CoreServices
SystemConfiguration
]);
configureFlags = [
"--without-apxs"
"--with-xmltooling=${xml-tooling-c}"
"--with-saml=${opensaml-cpp}"
"--with-fastcgi"
"CXXFLAGS=-std=c++14"
];
env.NIX_CFLAGS_COMPILE = lib.optionalString (!stdenv.isDarwin) "-std=c++14";
enableParallelBuilding = true;
meta = with lib; {