Files
nixpkgs/pkgs/by-name/li/libspf2/package.nix
Janne Heß 5a6d0ee976 treewide: Drop a lot of my maintainership
I do not have the time or energy to handle all of this. Let alone my
GitHub notifications. This PR is in good faith and does not refer to
anything community-related. I will keep on doing nixpkgs work but the
pile of shame (let's call it that) needs to be cleaned. Thanks to
@mweinelt which whom I had a discussion and who made me aware of this
issue.
2026-08-12 16:24:54 +02:00

50 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libspf2";
version = "2.2.13";
src = fetchFromGitHub {
owner = "helsinki-systems";
repo = "libspf2";
rev = "v${finalAttrs.version}";
hash = "sha256-tkCHP3B1sBb0+scHBjX5lCvaeSrZryfaGKye02LFlYs=";
};
nativeBuildInputs = [ autoreconfHook ];
strictDeps = true;
postPatch = ''
# disable static bins compilation
sed -i \
-e '/bin_PROGRAMS/s/spfquery_static//' src/spfquery/Makefile.am \
-e '/bin_PROGRAMS/s/spftest_static//' src/spftest/Makefile.am \
-e '/bin_PROGRAMS/s/spfd_static//' src/spfd/Makefile.am \
-e '/bin_PROGRAMS/s/spf_example_static//' src/spf_example/Makefile.am
'';
env.CFLAGS = "-Wno-error=implicit-function-declaration";
doCheck = true;
meta = {
description =
"Implementation of the Sender Policy Framework for SMTP " + "authorization (Helsinki Systems fork)";
homepage = "https://github.com/helsinki-systems/libspf2";
license = with lib.licenses; [
lgpl21Plus
bsd2
];
maintainers = with lib.maintainers; [
euxane
helsinki-Jo
];
platforms = lib.platforms.all;
};
})