Merge pull request #31613 from flokli/neomutt-wrap-aux
neomutt: wrapProgram to add lib/neomutt to PATH
This commit is contained in:
commit
876a5b63b0
@ -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