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; 4 5 - stdenv.mkDerivation { 6 - name = "ssmtp-2.64"; 7 8 src = fetchurl { 9 - url = "mirror://debian/pool/main/s/ssmtp/ssmtp_2.64.orig.tar.bz2"; 10 sha256 = "0dps8s87ag4g3jr6dk88hs9zl46h3790marc5c2qw7l71k4pvhr2"; 11 }; 12 ··· 19 (lib.enableFeature tlsSupport "ssl") 20 ]; 21 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 - ''; 32 33 installFlags = [ "etcdir=$(out)/etc" ]; 34 ··· 39 NIX_LDFLAGS = lib.optionalString tlsSupport "-lcrypto"; 40 41 meta = with lib; { 42 platforms = platforms.linux; 43 license = licenses.gpl2; 44 maintainers = with maintainers; [ basvandijk ];
··· 1 + { lib, stdenv, fetchurl, tlsSupport ? true, openssl }: 2 3 + stdenv.mkDerivation rec { 4 + pname = "ssmtp"; 5 + version = "2.64"; 6 7 src = fetchurl { 8 + url = "mirror://debian/pool/main/s/ssmtp/ssmtp_${version}.orig.tar.bz2"; 9 sha256 = "0dps8s87ag4g3jr6dk88hs9zl46h3790marc5c2qw7l71k4pvhr2"; 10 }; 11 ··· 18 (lib.enableFeature tlsSupport "ssl") 19 ]; 20 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 + ''; 30 31 installFlags = [ "etcdir=$(out)/etc" ]; 32 ··· 37 NIX_LDFLAGS = lib.optionalString tlsSupport "-lcrypto"; 38 39 meta = with lib; { 40 + description = "simple MTA to deliver mail from a computer to a mail hub"; 41 platforms = platforms.linux; 42 license = licenses.gpl2; 43 maintainers = with maintainers; [ basvandijk ];