2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, apacheHttpd, autoconf, automake, autoreconfHook, curl, fetchFromGitHub, glib, lasso, libtool, libxml2, libxslt, openssl, pkg-config, xmlsec }:
|
2016-02-06 21:27:48 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mod_auth_mellon";
|
2017-05-28 14:29:29 +01:00
|
|
|
version = "0.13.1";
|
2016-02-06 21:27:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "UNINETT";
|
|
|
|
repo = "mod_auth_mellon";
|
|
|
|
rev = "v${version}";
|
2017-05-28 14:29:29 +01:00
|
|
|
sha256 = "16b43y5a5p8g1287x04rv923230cy8dfs2j18cx6208n4bv4dvnk";
|
2016-02-06 21:27:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./fixdeps.patch
|
|
|
|
];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2017-09-05 22:26:13 +01:00
|
|
|
buildInputs = [ apacheHttpd autoconf automake curl glib lasso libtool libxml2 libxslt openssl xmlsec ];
|
2016-02-06 21:27:48 +00:00
|
|
|
|
2016-08-23 01:26:54 +01:00
|
|
|
configureFlags = ["--with-apxs2=${apacheHttpd.dev}/bin/apxs" "--exec-prefix=$out"];
|
2016-02-06 21:27:48 +00: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 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/UNINETT/mod_auth_mellon";
|
2016-02-06 21:27:48 +00:00
|
|
|
description = "An Apache module with a simple SAML 2.0 service provider";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ womfoo ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|