git.iko.soy/typeable/nixpkgs
on master help sign in
aerc: simplify derivation
commit83287e4e30b3516b1c16db241097fae645f2db0d authorThiago Kenji Okada <thiagokokada@gmail.com> dateThu 14 Apr 2022, 22:56 (5 years ago) parent445c5cc
1 file changed+4−9
pkgs/applications/networking/mailreaders/aerc/default.nix+4−9
pkgs/applications/networking/mailreaders/aerc/default.nix+4−9
@@ -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