Unverified Commit ea011c1e authored by Colin's avatar Colin Committed by GitHub
Browse files

aerc: make notmuch optional (#386733)

parents f2ef5d1a bf68ce7d
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
  '';