aerc: make notmuch optional (#386733)

This commit is contained in:
Colin
2025-03-08 08:51:30 +00:00
committed by GitHub
+3 -3
View File
@@ -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
'';