@@ -44,8 +44,6 @@ buildGoModule rec {
4444
4545 buildInputs = [ python3 notmuch ];
4646
47− GOFLAGS="-tags=notmuch";
48−
4947 buildPhase = "
5048 runHook preBuild
5149 # we use make instead of go build
@@ -54,7 +52,7 @@ buildGoModule rec {
5452
5553 installPhase = ''
5654 runHook preInstall
57− make PREFIX=$out install
55+ make PREFIX=$out GOFLAGS="$GOFLAGS -tags=notmuch" install
5856 wrapPythonProgramsIn $out/share/aerc/filters "$out $pythonPath"
5957 runHook postInstall
6058 '';
@@ -73,4 +71,4 @@ buildGoModule rec {
7371 license = licenses.mit;
7472 platforms = platforms.unix;
7573 };
76−}
74+}