1 { lib, stdenv, fetchFromGitHub, autoreconfHook, libmilter, perl, perlPackages, makeWrapper }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
8 owner = "trusteddomainproject";
10 rev = "rel-opendmarc-${builtins.replaceStrings [ "." ] [ "-" ] version}";
11 sha256 = "sha256-SQH85FLfVEEtYhR1+A1XxCDMiTjDgLQX6zifbLxCa5c=";
14 outputs = [ "bin" "dev" "out" "doc" ];
16 buildInputs = [ perl ];
17 nativeBuildInputs = [ autoreconfHook makeWrapper ];
20 substituteInPlace configure.ac --replace ' docs/Makefile' ""
21 patchShebangs contrib reports
25 "--with-milter=${libmilter}"
29 for b in $bin/bin/opendmarc-{expire,import,params,reports}; do
30 wrapProgram $b --set PERL5LIB ${perlPackages.makeFullPerlPath (with perlPackages; [ Switch DBI DBDmysql HTTPMessage ])}
35 description = "A free open source software implementation of the DMARC specification";
36 homepage = "http://www.trusteddomain.org/opendmarc/";
37 license = with licenses; [ bsd3 sendmail ];
38 maintainers = with maintainers; [ ajs124 das_j ];