2021-01-18 22:50:56 -08:00
|
|
|
{ lib, stdenv, apacheHttpd, autoconf, automake, autoreconfHook, curl, fetchFromGitHub, glib, lasso, libtool, libxml2, libxslt, openssl, pkg-config, xmlsec }:
|
2016-02-07 05:27:48 +08:00
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "mod_auth_mellon";
|
2021-08-11 08:43:00 -04:00
|
|
|
version = "0.18.0";
|
2016-02-07 05:27:48 +08:00
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-02-25 15:37:59 -05:00
|
|
|
owner = "latchset";
|
2016-02-07 05:27:48 +08:00
|
|
|
repo = "mod_auth_mellon";
|
|
|
|
|
rev = "v${version}";
|
2021-08-11 08:43:00 -04:00
|
|
|
sha256 = "0alfa8hz09jdg29bi1mvhwyr2nl0nvss2a2kybrcjvdw1fx6vijn";
|
2016-02-07 05:27:48 +08:00
|
|
|
};
|
|
|
|
|
|
2021-01-18 22:50:56 -08:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2017-09-05 17:26:13 -04:00
|
|
|
buildInputs = [ apacheHttpd autoconf automake curl glib lasso libtool libxml2 libxslt openssl xmlsec ];
|
2016-02-07 05:27:48 +08:00
|
|
|
|
2016-08-23 03:26:54 +03:00
|
|
|
configureFlags = ["--with-apxs2=${apacheHttpd.dev}/bin/apxs" "--exec-prefix=$out"];
|
2016-02-07 05:27:48 +08:00
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
|
mkdir -p $out/bin
|
|
|
|
|
cp ./mellon_create_metadata.sh $out/bin
|
|
|
|
|
mkdir -p $out/modules
|
|
|
|
|
cp ./.libs/mod_auth_mellon.so $out/modules
|
|
|
|
|
'';
|
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2021-08-11 08:43:00 -04:00
|
|
|
homepage = "https://github.com/latchset/mod_auth_mellon";
|
2016-02-07 05:27:48 +08:00
|
|
|
description = "An Apache module with a simple SAML 2.0 service provider";
|
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
|
platforms = platforms.linux;
|
|
|
|
|
maintainers = with maintainers; [ womfoo ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|