neomutt: remove mutt wrapper

Since Oct 14, 2017 we warned users still executing `neomutt`
through the `mutt` binary, so we can assume everybody read the notice,
updated his config, and can drop the wrapper.
This commit is contained in:
Florian Klink 2019-06-23 14:17:53 +02:00
parent 83ba5afcc9
commit 5ada40d687

View File

@ -3,19 +3,7 @@
, lmdb, libxslt, docbook_xsl, docbook_xml_dtd_42, mailcap, runtimeShell
}:
let
muttWrapper = writeScript "mutt" ''
#!${runtimeShell} -eu
echo 'The neomutt project has renamed the main binary from `mutt` to `neomutt`.'
echo ""
echo 'This wrapper is provided for compatibility purposes only. You should start calling `neomutt` instead.'
echo ""
read -p 'Press any key to launch NeoMutt...' -n1 -s
exec neomutt "$@"
'';
in stdenv.mkDerivation rec {
stdenv.mkDerivation rec {
version = "20180716";
name = "neomutt-${version}";
@ -80,7 +68,6 @@ in stdenv.mkDerivation rec {
NIX_LDFLAGS = "-lidn";
postInstall = ''
cp ${muttWrapper} $out/bin/mutt
wrapProgram "$out/bin/neomutt" --prefix PATH : "$out/libexec/neomutt"
'';