nixpkgs/pkgs/by-name/li/libspf2/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
2019-08-22 16:50:13 +01:00
stdenv.mkDerivation rec {
pname = "libspf2";
version = "2.2.13";
2019-08-22 16:50:13 +01:00
src = fetchFromGitHub {
owner = "helsinki-systems";
repo = "libspf2";
rev = "v${version}";
hash = "sha256-tkCHP3B1sBb0+scHBjX5lCvaeSrZryfaGKye02LFlYs=";
2019-08-22 16:50:13 +01:00
};
nativeBuildInputs = [ autoreconfHook ];
strictDeps = true;
2019-08-22 16:50:13 +01:00
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
'';
CFLAGS = lib.optionalString stdenv.cc.isClang "-Wno-implicit-function-declaration";
2019-08-22 16:50:13 +01:00
doCheck = true;
meta = with lib; {
description = "Implementation of the Sender Policy Framework for SMTP " +
"authorization (Helsinki Systems fork)";
homepage = "https://github.com/helsinki-systems/libspf2";
2019-08-22 16:50:13 +01:00
license = with licenses; [ lgpl21Plus bsd2 ];
maintainers = with maintainers; [ pacien ] ++ teams.helsinki-systems.members;
2019-08-22 16:50:13 +01:00
platforms = platforms.all;
};
}