Files
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01: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 = {
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 = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ womfoo ];
};
}