mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
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:
parent
83ba5afcc9
commit
5ada40d687
@ -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"
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user