Skip to content

Commit 4a0c7d1

Browse files
EkleogMic92
authored andcommittedMay 28, 2017
dkimproxy: init at 1.4.1 (#26147)
* 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
1 parent 314c73d commit 4a0c7d1

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed
 

‎lib/maintainers.nix

+1
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@
161161
ehegnes = "Eric Hegnes <eric.hegnes@gmail.com>";
162162
ehmry = "Emery Hemingway <emery@vfemail.net>";
163163
eikek = "Eike Kettner <eike.kettner@posteo.de>";
164+
ekleog = "Leo Gaspard <leo@gaspard.io>";
164165
elasticdog = "Aaron Bull Schaefer <aaron@elasticdog.com>";
165166
eleanor = "Dejan Lukan <dejan@proteansec.com>";
166167
elitak = "Eric Litak <elitak@gmail.com>";
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{ stdenv, perl, fetchurl, Error, MailDKIM, MIMEtools, NetServer }:
2+
3+
let
4+
pkg = "dkimproxy";
5+
version = "1.4.1";
6+
in
7+
stdenv.mkDerivation rec {
8+
name = "${pkg}-${version}";
9+
10+
src = fetchurl {
11+
url = "mirror://sourceforge/dkimproxy/${name}.tar.gz";
12+
sha256 = "1gc5c7lg2qrlck7b0lvjfqr824ch6jkrzkpsn0gjvlzg7hfmld75";
13+
};
14+
15+
# Idea taken from pkgs/development/perl-modules/generic/builder.sh
16+
preFixup = ''
17+
perlFlags=
18+
for i in $(IFS=:; echo $PERL5LIB); do
19+
perlFlags="$perlFlags -I$i"
20+
done
21+
for f in $(ls $out/bin); do
22+
sed -i $out/bin/$f -e "s|#\!\(.*/perl.*\)$|#\! \1 $perlFlags|"
23+
done
24+
'';
25+
26+
buildInputs = [ perl ];
27+
propagatedBuildInputs = [ Error MailDKIM MIMEtools NetServer ];
28+
29+
meta = with stdenv.lib; {
30+
description = "SMTP-proxy that signs and/or verifies emails";
31+
homepage = http://dkimproxy.sourceforge.net/;
32+
license = licenses.gpl2Plus;
33+
maintainers = [ maintainers.ekleog ];
34+
platforms = platforms.all;
35+
};
36+
}

‎pkgs/top-level/all-packages.nix

+4
Original file line numberDiff line numberDiff line change
@@ -10876,6 +10876,10 @@ with pkgs;
1087610876

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

10879+
dkimproxy = callPackage ../servers/mail/dkimproxy {
10880+
inherit (perlPackages) Error MailDKIM MIMEtools NetServer;
10881+
};
10882+
1087910883
dnschain = callPackage ../servers/dnschain { };
1088010884

1088110885
dovecot = callPackage ../servers/mail/dovecot { };

0 commit comments

Comments
 (0)
Please sign in to comment.