tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ssmtp: cleanup, format
Sandro Jäckel
4 years ago
ae99f5aa
9733d7e0
+15
-16
1 changed file
expand all
collapse all
unified
split
pkgs
tools
networking
ssmtp
default.nix
+15
-16
pkgs/tools/networking/ssmtp/default.nix
···
1
1
-
{lib, stdenv, fetchurl, tlsSupport ? true, openssl ? null}:
2
2
-
3
3
-
assert tlsSupport -> openssl != null;
1
1
+
{ lib, stdenv, fetchurl, tlsSupport ? true, openssl }:
4
2
5
5
-
stdenv.mkDerivation {
6
6
-
name = "ssmtp-2.64";
3
3
+
stdenv.mkDerivation rec {
4
4
+
pname = "ssmtp";
5
5
+
version = "2.64";
7
6
8
7
src = fetchurl {
9
9
-
url = "mirror://debian/pool/main/s/ssmtp/ssmtp_2.64.orig.tar.bz2";
8
8
+
url = "mirror://debian/pool/main/s/ssmtp/ssmtp_${version}.orig.tar.bz2";
10
9
sha256 = "0dps8s87ag4g3jr6dk88hs9zl46h3790marc5c2qw7l71k4pvhr2";
11
10
};
12
11
···
19
18
(lib.enableFeature tlsSupport "ssl")
20
19
];
21
20
22
22
-
postConfigure =
23
23
-
''
24
24
-
# Don't run the script that interactively generates a config file.
25
25
-
# Also don't install the broken, cyclic symlink /lib/sendmail.
26
26
-
sed -e '/INSTALLED_CONFIGURATION_FILE/d' \
27
27
-
-e 's|/lib/sendmail|$(TMPDIR)/sendmail|' \
28
28
-
-i Makefile
29
29
-
substituteInPlace Makefile \
30
30
-
--replace '$(INSTALL) -s' '$(INSTALL) -s --strip-program $(STRIP)'
31
31
-
'';
21
21
+
postConfigure = ''
22
22
+
# Don't run the script that interactively generates a config file.
23
23
+
# Also don't install the broken, cyclic symlink /lib/sendmail.
24
24
+
sed -e '/INSTALLED_CONFIGURATION_FILE/d' \
25
25
+
-e 's|/lib/sendmail|$(TMPDIR)/sendmail|' \
26
26
+
-i Makefile
27
27
+
substituteInPlace Makefile \
28
28
+
--replace '$(INSTALL) -s' '$(INSTALL) -s --strip-program $(STRIP)'
29
29
+
'';
32
30
33
31
installFlags = [ "etcdir=$(out)/etc" ];
34
32
···
39
37
NIX_LDFLAGS = lib.optionalString tlsSupport "-lcrypto";
40
38
41
39
meta = with lib; {
40
40
+
description = "simple MTA to deliver mail from a computer to a mail hub";
42
41
platforms = platforms.linux;
43
42
license = licenses.gpl2;
44
43
maintainers = with maintainers; [ basvandijk ];