at 23.11-beta 36 lines 1.1 kB view raw
1{ lib, stdenv, fetchFromGitHub, autoreconfHook }: 2 3stdenv.mkDerivation rec { 4 pname = "libspf2"; 5 version = "2.2.13"; 6 7 src = fetchFromGitHub { 8 owner = "helsinki-systems"; 9 repo = "libspf2"; 10 rev = "v${version}"; 11 hash = "sha256-tkCHP3B1sBb0+scHBjX5lCvaeSrZryfaGKye02LFlYs="; 12 }; 13 14 nativeBuildInputs = [ autoreconfHook ]; 15 strictDeps = true; 16 17 postPatch = '' 18 # disable static bins compilation 19 sed -i \ 20 -e '/bin_PROGRAMS/s/spfquery_static//' src/spfquery/Makefile.am \ 21 -e '/bin_PROGRAMS/s/spftest_static//' src/spftest/Makefile.am \ 22 -e '/bin_PROGRAMS/s/spfd_static//' src/spfd/Makefile.am \ 23 -e '/bin_PROGRAMS/s/spf_example_static//' src/spf_example/Makefile.am 24 ''; 25 26 doCheck = true; 27 28 meta = with lib; { 29 description = "Implementation of the Sender Policy Framework for SMTP " + 30 "authorization (Helsinki Systems fork)"; 31 homepage = "https://github.com/helsinki-systems/libspf2"; 32 license = with licenses; [ lgpl21Plus bsd2 ]; 33 maintainers = with maintainers; [ pacien ajs124 das_j ]; 34 platforms = platforms.all; 35 }; 36}