diff options
author | Elian Doran <contact@eliandoran.me> | 2024-05-18 18:14:08 +0300 |
---|---|---|
committer | Elian Doran <contact@eliandoran.me> | 2024-05-19 10:19:23 +0300 |
commit | 5ddb74a319a4b20599e73261c8e94f27def3e0ec (patch) | |
tree | b8344a710c55d05c59014957274a5308db795406 | |
parent | 9cc583b9d176d38d31e433f22838c78b74878d23 (diff) |
shibboleth-sp: fix build on darwin
-rw-r--r-- | pkgs/development/libraries/shibboleth-sp/default.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/development/libraries/shibboleth-sp/default.nix b/pkgs/development/libraries/shibboleth-sp/default.nix index ba99564713100..da63b22f9e7ee 100644 --- a/pkgs/development/libraries/shibboleth-sp/default.nix +++ b/pkgs/development/libraries/shibboleth-sp/default.nix @@ -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; { |