@@ -40,7 +40,7 @@ buildGoModule rec {
4040 substituteAllInPlace doc/aerc-config.5.scd
4141 '';
4242
43− makeFlags = [ "PREFIX=$out" ];
43+ makeFlags = [ "PREFIX=${placeholder "out"}" ];
4444
4545 pythonPath = [
4646 python3.pkgs.colorama
@@ -48,16 +48,11 @@ buildGoModule rec {
4848
4949 buildInputs = [ python3 notmuch ];
5050
51− buildPhase = "
52− runHook preBuild
53− # we use make instead of go build
54− runHook postBuild
55− ";
56−
5751 installPhase = ''
5852 runHook preInstall
59− make PREFIX=$out GOFLAGS="$GOFLAGS -tags=notmuch" install
60− wrapPythonProgramsIn $out/share/aerc/filters "$out $pythonPath"
53+
54+ make $makeFlags GOFLAGS="$GOFLAGS -tags=notmuch" install
55+
6156 runHook postInstall
6257 '';
6358