Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

72 lines
1.2 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.19.1";
src = fetchFromGitHub {
owner = "latchset";
repo = "mod_auth_mellon";
rev = "v${version}";
sha256 = "sha256-VcR+HZ5S7fLrGqT1SHCQLQw6v516G0x+wf8Wb5Sy4Gk=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
autoconf
automake
];
buildInputs = [
apacheHttpd
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/latchset/mod_auth_mellon";
description = "Apache module with a simple SAML 2.0 service provider";
mainProgram = "mellon_create_metadata.sh";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ womfoo ];
};
}