mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
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
|
{ stdenv, fetchFromGitHub, which, autoreconfHook, makeWrapper, writeScript,
|
||||||
, cyrus_sasl, gss, gpgme, kerberos, libidn, notmuch, openssl, lmdb, libxslt, docbook_xsl, docbook_xml_dtd_42 }:
|
ncurses, perl , cyrus_sasl, gss, gpgme, kerberos, libidn, notmuch, openssl,
|
||||||
|
lmdb, libxslt, docbook_xsl, docbook_xml_dtd_42 }:
|
||||||
|
|
||||||
let
|
let
|
||||||
muttWrapper = writeScript "mutt" ''
|
muttWrapper = writeScript "mutt" ''
|
||||||
@ -26,7 +27,7 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
cyrus_sasl gss gpgme kerberos libidn ncurses
|
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 ];
|
nativeBuildInputs = [ autoreconfHook docbook_xsl docbook_xml_dtd_42 libxslt.bin which ];
|
||||||
@ -65,6 +66,7 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
cp ${muttWrapper} $out/bin/mutt
|
cp ${muttWrapper} $out/bin/mutt
|
||||||
|
wrapProgram "$out/bin/neomutt" --prefix PATH : "$out/lib/neomutt"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user