opendkim: adopt, cleanup and fix opendkim-genkey

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