lol
1{ lib, stdenv, apacheHttpd, autoconf, automake, autoreconfHook, curl, fetchFromGitHub, glib, lasso, libtool, libxml2, libxslt, openssl, pkg-config, xmlsec }:
2
3stdenv.mkDerivation rec {
4
5 pname = "mod_auth_mellon";
6 version = "0.18.0";
7
8 src = fetchFromGitHub {
9 owner = "latchset";
10 repo = "mod_auth_mellon";
11 rev = "v${version}";
12 sha256 = "0alfa8hz09jdg29bi1mvhwyr2nl0nvss2a2kybrcjvdw1fx6vijn";
13 };
14
15 nativeBuildInputs = [ autoreconfHook pkg-config autoconf automake ];
16 buildInputs = [ apacheHttpd curl glib lasso libtool libxml2 libxslt openssl xmlsec ];
17
18 configureFlags = ["--with-apxs2=${apacheHttpd.dev}/bin/apxs" "--exec-prefix=$out"];
19
20 installPhase = ''
21 mkdir -p $out/bin
22 cp ./mellon_create_metadata.sh $out/bin
23 mkdir -p $out/modules
24 cp ./.libs/mod_auth_mellon.so $out/modules
25 '';
26
27 meta = with lib; {
28 homepage = "https://github.com/latchset/mod_auth_mellon";
29 description = "An Apache module with a simple SAML 2.0 service provider";
30 license = licenses.gpl2Plus;
31 platforms = platforms.linux;
32 maintainers = with maintainers; [ womfoo ];
33 };
34
35}