Skip to content

Commit

Permalink
dkimproxy: init at 1.4.1 (#26147)
Browse files Browse the repository at this point in the history
* dkimproxy: init at 1.4.1

* dkimproxy: simplify by using mkDerivation

* dkimproxy: set ekleog as maintainer

* dkimproxy: style fix

* dkimproxy: also work without the right PERL5LIB environment variable
  • Loading branch information
Ekleog authored and Mic92 committed May 28, 2017
1 parent 314c73d commit 4a0c7d1
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/maintainers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
ehegnes = "Eric Hegnes <eric.hegnes@gmail.com>";
ehmry = "Emery Hemingway <emery@vfemail.net>";
eikek = "Eike Kettner <eike.kettner@posteo.de>";
ekleog = "Leo Gaspard <leo@gaspard.io>";
elasticdog = "Aaron Bull Schaefer <aaron@elasticdog.com>";
eleanor = "Dejan Lukan <dejan@proteansec.com>";
elitak = "Eric Litak <elitak@gmail.com>";
Expand Down
36 changes: 36 additions & 0 deletions pkgs/servers/mail/dkimproxy/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ stdenv, perl, fetchurl, Error, MailDKIM, MIMEtools, NetServer }:

let
pkg = "dkimproxy";
version = "1.4.1";
in
stdenv.mkDerivation rec {
name = "${pkg}-${version}";

src = fetchurl {
url = "mirror://sourceforge/dkimproxy/${name}.tar.gz";
sha256 = "1gc5c7lg2qrlck7b0lvjfqr824ch6jkrzkpsn0gjvlzg7hfmld75";
};

# Idea taken from pkgs/development/perl-modules/generic/builder.sh
preFixup = ''
perlFlags=
for i in $(IFS=:; echo $PERL5LIB); do
perlFlags="$perlFlags -I$i"
done
for f in $(ls $out/bin); do
sed -i $out/bin/$f -e "s|#\!\(.*/perl.*\)$|#\! \1 $perlFlags|"
done
'';

buildInputs = [ perl ];
propagatedBuildInputs = [ Error MailDKIM MIMEtools NetServer ];

meta = with stdenv.lib; {
description = "SMTP-proxy that signs and/or verifies emails";
homepage = http://dkimproxy.sourceforge.net/;
license = licenses.gpl2Plus;
maintainers = [ maintainers.ekleog ];
platforms = platforms.all;
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10876,6 +10876,10 @@ with pkgs;

diod = callPackage ../servers/diod { lua = lua5_1; };

dkimproxy = callPackage ../servers/mail/dkimproxy {
inherit (perlPackages) Error MailDKIM MIMEtools NetServer;
};

dnschain = callPackage ../servers/dnschain { };

dovecot = callPackage ../servers/mail/dovecot { };
Expand Down

0 comments on commit 4a0c7d1

Please sign in to comment.