diff options
author | Nikolay Amiantov <ab@fmap.me> | 2015-11-02 00:59:44 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-01-13 13:07:11 +0300 |
commit | 1ea34520cd431277dfd97499d3fa48d42d8c7999 (patch) | |
tree | f84571401226018a90299f8ee2c64a03d96281a0 /pkgs/development/libraries/opendkim | |
parent | 84817f80698812503ebada1374ea0863e83de41a (diff) |
opendkim: adopt, cleanup and fix opendkim-genkey
Diffstat (limited to 'pkgs/development/libraries/opendkim')
-rw-r--r-- | pkgs/development/libraries/opendkim/default.nix | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/pkgs/development/libraries/opendkim/default.nix b/pkgs/development/libraries/opendkim/default.nix index d84f9e755100b..e89cd880df13b 100644 --- a/pkgs/development/libraries/opendkim/default.nix +++ b/pkgs/development/libraries/opendkim/default.nix @@ -1,4 +1,5 @@ -{stdenv, fetchurl, openssl, libmilter, libbsd}: +{ stdenv, fetchurl, pkgconfig, libbsd, openssl, libmilter +, perl, makeWrapper }: stdenv.mkDerivation rec { name = "opendkim-2.10.3"; @@ -7,15 +8,22 @@ stdenv.mkDerivation rec { sha256 = "06v8bqhh604sz9rh5bvw278issrwjgc4h1wx2pz9a84lpxbvm823"; }; - configureFlags="--with-openssl=${openssl} --with-milter=${libmilter}"; + configureFlags= [ "--with-milter=${libmilter}" ]; - buildInputs = [openssl libmilter libbsd]; - - meta = { + nativeBuildInputs = [ pkgconfig makeWrapper ]; + + buildInputs = [ libbsd openssl libmilter perl ]; + + postInstall = '' + wrapProgram $out/sbin/opendkim-genkey \ + --prefix PATH : ${openssl}/bin + ''; + + meta = with stdenv.lib; { description = "C library for producing DKIM-aware applications and an open source milter for providing DKIM service"; - homepage = http://opendkim.org/; - maintainers = [ ]; - platforms = with stdenv.lib.platforms; all; + homepage = http://www.opendkim.org/; + maintainers = with maintainers; [ abbradar ]; + license = licenses.bsd3; + platforms = platforms.unix; }; - } |