Commit bf68ce7d authored by toastal's avatar toastal
Browse files

aerc: make notmuch optional

I don’t use it & notmuch is currently not building
parent 0b791963
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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
  '';