opendkim: adopt, cleanup and fix opendkim-genkey

+17 -9
+17 -9
pkgs/development/libraries/opendkim/default.nix
··· 1 - {stdenv, fetchurl, openssl, libmilter, libbsd}: 2 3 stdenv.mkDerivation rec { 4 name = "opendkim-2.10.3"; ··· 7 sha256 = "06v8bqhh604sz9rh5bvw278issrwjgc4h1wx2pz9a84lpxbvm823"; 8 }; 9 10 - configureFlags="--with-openssl=${openssl} --with-milter=${libmilter}"; 11 12 - buildInputs = [openssl libmilter libbsd]; 13 - 14 - meta = { 15 description = "C library for producing DKIM-aware applications and an open source milter for providing DKIM service"; 16 - homepage = http://opendkim.org/; 17 - maintainers = [ ]; 18 - platforms = with stdenv.lib.platforms; all; 19 }; 20 - 21 }
··· 1 + { stdenv, fetchurl, pkgconfig, libbsd, openssl, libmilter 2 + , perl, makeWrapper }: 3 4 stdenv.mkDerivation rec { 5 name = "opendkim-2.10.3"; ··· 8 sha256 = "06v8bqhh604sz9rh5bvw278issrwjgc4h1wx2pz9a84lpxbvm823"; 9 }; 10 11 + configureFlags= [ "--with-milter=${libmilter}" ]; 12 + 13 + nativeBuildInputs = [ pkgconfig makeWrapper ]; 14 + 15 + buildInputs = [ libbsd openssl libmilter perl ]; 16 17 + postInstall = '' 18 + wrapProgram $out/sbin/opendkim-genkey \ 19 + --prefix PATH : ${openssl}/bin 20 + ''; 21 + 22 + meta = with stdenv.lib; { 23 description = "C library for producing DKIM-aware applications and an open source milter for providing DKIM service"; 24 + homepage = http://www.opendkim.org/; 25 + maintainers = with maintainers; [ abbradar ]; 26 + license = licenses.bsd3; 27 + platforms = platforms.unix; 28 }; 29 }