Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ lib, stdenv, apacheHttpd, autoconf, automake, autoreconfHook, curl, fetchFromGitHub, glib, lasso, libtool, libxml2, libxslt, openssl, pkgconfig, xmlsec }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mod_auth_mellon";
|
|
version = "0.13.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "UNINETT";
|
|
repo = "mod_auth_mellon";
|
|
rev = "v${version}";
|
|
sha256 = "16b43y5a5p8g1287x04rv923230cy8dfs2j18cx6208n4bv4dvnk";
|
|
};
|
|
|
|
patches = [
|
|
./fixdeps.patch
|
|
];
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
buildInputs = [ apacheHttpd autoconf automake 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/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 ];
|
|
};
|
|
|
|
}
|