Merge pull request #25255 from jammerful/shibboleth
Add Shibboleth Service Provider
This commit is contained in:
18
pkgs/development/libraries/log4shib/default.nix
Normal file
18
pkgs/development/libraries/log4shib/default.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ stdenv, fetchgit, autoreconfHook }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "log4shib-${version}";
|
||||
version = "1.0.9";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://git.shibboleth.net/git/cpp-log4shib.git";
|
||||
rev = "a1afe19b7b49c32fcb03e6d72809501b8965cf85";
|
||||
sha256 = "06rrc5l6qxlc8abzim2jcxwz2c577qrjqx15cbfqq1zfqagj9hix";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
meta = {
|
||||
description = "A forked version of log4cpp that has been created for the Shibboleth project";
|
||||
};
|
||||
}
|
||||
23
pkgs/development/libraries/opensaml-cpp/default.nix
Normal file
23
pkgs/development/libraries/opensaml-cpp/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ stdenv, fetchgit, autoreconfHook, boost, openssl, log4shib, xercesc, xml-security-c, xml-tooling-c, zlib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "opensaml-cpp-${version}";
|
||||
version = "2.6.0";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://git.shibboleth.net/git/cpp-opensaml.git";
|
||||
rev = "61193de29e4c9f1ccff7ed7e1f42c2748c62be77";
|
||||
sha256 = "1jlxa1f2qn0kd15fzjqp80apxn42v47wg3mx1vk424m31rhi00xr";
|
||||
};
|
||||
|
||||
buildInputs = [ boost openssl log4shib xercesc xml-security-c xml-tooling-c zlib ];
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
configureFlags = [ "--with-xmltooling=${xml-tooling-c}" ];
|
||||
|
||||
meta = {
|
||||
home = https://shibboleth.net/products/opensaml-cpp.html;
|
||||
description = "A low-level library written in C++ that provides support for producing and consuming SAML messages";
|
||||
};
|
||||
|
||||
}
|
||||
29
pkgs/development/libraries/shibboleth-sp/default.nix
Normal file
29
pkgs/development/libraries/shibboleth-sp/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ stdenv, fetchgit, autoreconfHook, boost, fcgi, openssl, opensaml-cpp, log4shib, pkgconfig, xercesc, xml-security-c, xml-tooling-c }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "shibboleth-sp-${version}";
|
||||
version = "2.6.0";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://git.shibboleth.net/git/cpp-sp.git";
|
||||
rev = "9ebba5c3a16d03769f436e383e4c4cdaa33f5509";
|
||||
sha256 = "1b5r4nd098lnjwr2g13f04ycqv5fvbrhpwg6fsdk8xy9cigvfzxj";
|
||||
};
|
||||
|
||||
# Needs pkgconfig to find systemd
|
||||
buildInputs = [ boost fcgi openssl opensaml-cpp log4shib pkgconfig xercesc xml-security-c xml-tooling-c ];
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
configureFlags = [
|
||||
"--without-apxs"
|
||||
"--with-xmltooling=${xml-tooling-c}"
|
||||
"--with-saml=${opensaml-cpp}"
|
||||
"--with-fastcgi"
|
||||
];
|
||||
|
||||
meta = {
|
||||
home = https://shibboleth.net/products/service-provider.html;
|
||||
description = "Enables SSO and Federation web applications written with any programming language or framework";
|
||||
};
|
||||
|
||||
}
|
||||
20
pkgs/development/libraries/xml-tooling-c/default.nix
Normal file
20
pkgs/development/libraries/xml-tooling-c/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ stdenv, fetchgit, autoreconfHook, boost, curl, openssl, log4shib, xercesc, xml-security-c }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "xml-tooling-c-${version}";
|
||||
version = "1.6.0";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://git.shibboleth.net/git/cpp-xmltooling.git";
|
||||
rev = "db08101c3854518a59096be95ed6564838381744";
|
||||
sha256 = "0rhzvxm4z3pm28kpk34hayhm12bjjms2kygv1z68vnz8ijzgcinq";
|
||||
};
|
||||
|
||||
buildInputs = [ boost curl openssl log4shib xercesc xml-security-c ];
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
meta = {
|
||||
description = "A low-level library that provides a high level interface to XML processing for OpenSAML 2";
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user