aerc: make notmuch optional (#386733)
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
buildGoModule,
|
||||
fetchFromSourcehut,
|
||||
ncurses,
|
||||
withNotmuch ? true,
|
||||
notmuch,
|
||||
scdoc,
|
||||
python3Packages,
|
||||
@@ -50,14 +51,13 @@ buildGoModule rec {
|
||||
|
||||
buildInputs = [
|
||||
python3Packages.python
|
||||
notmuch
|
||||
gawk
|
||||
];
|
||||
] ++ lib.optional withNotmuch notmuch;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
make $makeFlags GOFLAGS="$GOFLAGS -tags=notmuch" install
|
||||
make $makeFlags GOFLAGS="$GOFLAGS${lib.optionalString withNotmuch " -tags=notmuch"}" install
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user