neomutt: wrapProgram to add lib/neomutt to PATH
This is needed to have the auxillary tools 'pgpewrap', 'pgpring' and 'smime_keys' in PATH. Fixes #31609.
This commit is contained in:
parent
eafd703a63
commit
b14c799213
@ -1,5 +1,6 @@
|
||||
{ stdenv, fetchFromGitHub, which, autoreconfHook, writeScript, ncurses, perl
|
||||
, cyrus_sasl, gss, gpgme, kerberos, libidn, notmuch, openssl, lmdb, libxslt, docbook_xsl, docbook_xml_dtd_42 }:
|
||||
{ stdenv, fetchFromGitHub, which, autoreconfHook, makeWrapper, writeScript,
|
||||
ncurses, perl , cyrus_sasl, gss, gpgme, kerberos, libidn, notmuch, openssl,
|
||||
lmdb, libxslt, docbook_xsl, docbook_xml_dtd_42 }:
|
||||
|
||||
let
|
||||
muttWrapper = writeScript "mutt" ''
|
||||
@ -26,7 +27,7 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [
|
||||
cyrus_sasl gss gpgme kerberos libidn ncurses
|
||||
notmuch openssl perl lmdb
|
||||
notmuch openssl perl lmdb makeWrapper
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook docbook_xsl docbook_xml_dtd_42 libxslt.bin which ];
|
||||
@ -65,6 +66,7 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
postInstall = ''
|
||||
cp ${muttWrapper} $out/bin/mutt
|
||||
wrapProgram "$out/bin/neomutt" --prefix PATH : "$out/lib/neomutt"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user