meli: fix runtime error with libnotmuch5
> libnotmuch5 was not found in your system. Make sure it is installed and in the library paths. > notmuch is not a valid mail backend
This commit is contained in:
parent
2ea6e83af1
commit
d75276a28e
@ -8,6 +8,7 @@
|
|||||||
, sqlite
|
, sqlite
|
||||||
, file
|
, file
|
||||||
, gzip
|
, gzip
|
||||||
|
, makeWrapper
|
||||||
, notmuch
|
, notmuch
|
||||||
# Build with support for notmuch backend
|
# Build with support for notmuch backend
|
||||||
, withNotmuch ? true
|
, withNotmuch ? true
|
||||||
@ -27,7 +28,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
cargoBuildFlags = lib.optional withNotmuch "--features=notmuch";
|
cargoBuildFlags = lib.optional withNotmuch "--features=notmuch";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig gzip ];
|
nativeBuildInputs = [ pkgconfig gzip makeWrapper ];
|
||||||
|
|
||||||
buildInputs = [ openssl dbus sqlite ] ++ lib.optional withNotmuch notmuch;
|
buildInputs = [ openssl dbus sqlite ] ++ lib.optional withNotmuch notmuch;
|
||||||
|
|
||||||
@ -39,6 +40,13 @@ rustPlatform.buildRustPackage rec {
|
|||||||
mkdir -p $out/share/man/man5
|
mkdir -p $out/share/man/man5
|
||||||
gzip < docs/meli.conf.5 > $out/share/man/man5/meli.conf.5.gz
|
gzip < docs/meli.conf.5 > $out/share/man/man5/meli.conf.5.gz
|
||||||
gzip < docs/meli-themes.5 > $out/share/man/man5/meli-themes.5.gz
|
gzip < docs/meli-themes.5 > $out/share/man/man5/meli-themes.5.gz
|
||||||
|
'' + lib.optionalString withNotmuch ''
|
||||||
|
# Fixes this runtime error when meli is started with notmuch configured:
|
||||||
|
# $ meli
|
||||||
|
# libnotmuch5 was not found in your system. Make sure it is installed and
|
||||||
|
# in the library paths.
|
||||||
|
# notmuch is not a valid mail backend
|
||||||
|
wrapProgram $out/bin/meli --set LD_LIBRARY_PATH ${notmuch}/lib
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user