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