ssmtp: cleanup, format

+15 -16
+15 -16
pkgs/tools/networking/ssmtp/default.nix
··· 1 - {lib, stdenv, fetchurl, tlsSupport ? true, openssl ? null}: 2 - 3 - assert tlsSupport -> openssl != null; 1 + { lib, stdenv, fetchurl, tlsSupport ? true, openssl }: 4 2 5 - stdenv.mkDerivation { 6 - name = "ssmtp-2.64"; 3 + stdenv.mkDerivation rec { 4 + pname = "ssmtp"; 5 + version = "2.64"; 7 6 8 7 src = fetchurl { 9 - url = "mirror://debian/pool/main/s/ssmtp/ssmtp_2.64.orig.tar.bz2"; 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 - postConfigure = 23 - '' 24 - # Don't run the script that interactively generates a config file. 25 - # Also don't install the broken, cyclic symlink /lib/sendmail. 26 - sed -e '/INSTALLED_CONFIGURATION_FILE/d' \ 27 - -e 's|/lib/sendmail|$(TMPDIR)/sendmail|' \ 28 - -i Makefile 29 - substituteInPlace Makefile \ 30 - --replace '$(INSTALL) -s' '$(INSTALL) -s --strip-program $(STRIP)' 31 - ''; 21 + postConfigure = '' 22 + # Don't run the script that interactively generates a config file. 23 + # Also don't install the broken, cyclic symlink /lib/sendmail. 24 + sed -e '/INSTALLED_CONFIGURATION_FILE/d' \ 25 + -e 's|/lib/sendmail|$(TMPDIR)/sendmail|' \ 26 + -i Makefile 27 + substituteInPlace Makefile \ 28 + --replace '$(INSTALL) -s' '$(INSTALL) -s --strip-program $(STRIP)' 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 + 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 ];