39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ lib, stdenv, apacheHttpd, autoconf, automake, autoreconfHook, curl, fetchFromGitHub, glib, lasso, libtool, libxml2, libxslt, openssl, pkg-config, xmlsec }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mod_auth_mellon";
|
|
version = "0.17.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "latchset";
|
|
repo = "mod_auth_mellon";
|
|
rev = "v${version}";
|
|
sha256 = "03bkvqkmqq72ff1a8cpvpcxngnlz1p6433y2fkkynpjfr19cna2s";
|
|
};
|
|
|
|
patches = [
|
|
./fixdeps.patch
|
|
];
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
buildInputs = [ apacheHttpd autoconf automake curl glib lasso libtool libxml2 libxslt openssl xmlsec ];
|
|
|
|
configureFlags = ["--with-apxs2=${apacheHttpd.dev}/bin/apxs" "--exec-prefix=$out"];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp ./mellon_create_metadata.sh $out/bin
|
|
mkdir -p $out/modules
|
|
cp ./.libs/mod_auth_mellon.so $out/modules
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/UNINETT/mod_auth_mellon";
|
|
description = "An Apache module with a simple SAML 2.0 service provider";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ womfoo ];
|
|
};
|
|
|
|
}
|