nixpkgs/pkgs/servers/http/apache-modules/mod_auth_mellon/default.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

2016-02-06 22:27:48 +01:00
{ stdenv, apacheHttpd, autoconf, automake, autoreconfHook, curl, fetchFromGitHub, glib, lasso, libtool, libxml2, libxslt, openssl, pkgconfig, xmlsec }:
stdenv.mkDerivation rec {
name = "mod_auth_mellon-${version}";
2017-05-28 15:29:29 +02:00
version = "0.13.1";
2016-02-06 22:27:48 +01:00
src = fetchFromGitHub {
owner = "UNINETT";
repo = "mod_auth_mellon";
rev = "v${version}";
2017-05-28 15:29:29 +02:00
sha256 = "16b43y5a5p8g1287x04rv923230cy8dfs2j18cx6208n4bv4dvnk";
2016-02-06 22:27:48 +01:00
};
patches = [
./fixdeps.patch
];
buildInputs = [ apacheHttpd autoconf autoreconfHook automake curl glib lasso libtool libxml2 libxslt openssl pkgconfig xmlsec ];
configureFlags = ["--with-apxs2=${apacheHttpd.dev}/bin/apxs" "--exec-prefix=$out"];
2016-02-06 22:27:48 +01: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
'';
meta = with stdenv.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 ];
};
}