mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
cb06a8a558
The last stable opendkim release is from 2015 and does not handle some signatures such as ed25519 which was standardized for DKIM in 2018. Both Fedora and Debian ship with 2.11.0 alphas/betas in their stable releases. Since the development branch has not seen any new commits since 2018, I doubt there will be a new stable release any time soon.
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, pkg-config, libbsd, openssl, libmilter
|
|
, autoreconfHook, perl, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "opendkim";
|
|
version = "2.11.0-Beta2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "trusteddomainproject";
|
|
repo = "OpenDKIM";
|
|
rev = "rel-opendkim-${lib.replaceChars ["."] ["-"] version}";
|
|
sha256 = "0nx3in8sa6xna4vfacj8g60hfzk61jpj2ldag80xzxip9c3rd2pw";
|
|
};
|
|
|
|
configureFlags= [
|
|
"--with-milter=${libmilter}"
|
|
"ac_cv_func_malloc_0_nonnull=yes"
|
|
"ac_cv_func_realloc_0_nonnull=yes"
|
|
];
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config makeWrapper ];
|
|
|
|
buildInputs = [ libbsd openssl libmilter perl ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/sbin/opendkim-genkey \
|
|
--prefix PATH : ${openssl.bin}/bin
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "C library for producing DKIM-aware applications and an open source milter for providing DKIM service";
|
|
homepage = "http://www.opendkim.org/";
|
|
maintainers = with maintainers; [ abbradar ];
|
|
license = licenses.bsd3;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|