X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=pkgs%2Fopendmarc%2Fdefault.nix;h=1c50248238daaa7be1829b6013c81b02e1c148f1;hb=411af8e3f754278c5b54dfef7e1bd144a6007c39;hpb=9247b444929061f32be9b003621e1da555ebc770;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/pkgs/opendmarc/default.nix b/pkgs/opendmarc/default.nix new file mode 100644 index 0000000..1c50248 --- /dev/null +++ b/pkgs/opendmarc/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchurl, pkgconfig, libbsd, openssl, libmilter , perl, makeWrapper, libspf2 }: + +stdenv.mkDerivation rec { + name = "opendmarc-${version}"; + version = "1.3.2"; + + src = fetchurl { + url = "mirror://sourceforge/opendmarc/files/${name}.tar.gz"; + sha256 = "1yrggj8yq0915y2i34gfz2xpl1w2lgb1vggp67rwspgzm40lng11"; + }; + + configureFlags= [ + "--with-spf" + "--with-spf2-include=${libspf2}/include/spf2" + "--with-spf2-lib=${libspf2}/lib/" + "--with-milter=${libmilter}" + ]; + + buildInputs = [ libspf2 libbsd openssl libmilter perl ]; + + meta = with stdenv.lib; { + description = "Free open source software implementation of the DMARC specification"; + homepage = http://www.trusteddomain.org/opendmarc/; + platforms = platforms.unix; + }; +}