diff options
author | Thiago Kenji Okada <thiagokokada@gmail.com> | 2022-04-14 22:56:25 +0100 |
---|---|---|
committer | Thiago Kenji Okada <thiagokokada@gmail.com> | 2022-04-14 23:08:27 +0100 |
commit | 83287e4e30b3516b1c16db241097fae645f2db0d (patch) | |
tree | 7fcc91679bbf508045fb9ba7c2e1573e0fd94895 /pkgs/applications/networking/mailreaders/aerc/default.nix | |
parent | 445c5cc5230cd4e5d518a0425665c4b5f0e03869 (diff) |
aerc: simplify derivation
Diffstat (limited to 'pkgs/applications/networking/mailreaders/aerc/default.nix')
-rw-r--r-- | pkgs/applications/networking/mailreaders/aerc/default.nix | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/pkgs/applications/networking/mailreaders/aerc/default.nix b/pkgs/applications/networking/mailreaders/aerc/default.nix index 10ea35ebc69bf..5d00242452b80 100644 --- a/pkgs/applications/networking/mailreaders/aerc/default.nix +++ b/pkgs/applications/networking/mailreaders/aerc/default.nix @@ -40,7 +40,7 @@ buildGoModule rec { substituteAllInPlace doc/aerc-config.5.scd ''; - makeFlags = [ "PREFIX=$out" ]; + makeFlags = [ "PREFIX=${placeholder "out"}" ]; pythonPath = [ python3.pkgs.colorama @@ -48,16 +48,11 @@ buildGoModule rec { buildInputs = [ python3 notmuch ]; - buildPhase = " - runHook preBuild - # we use make instead of go build - runHook postBuild - "; - installPhase = '' runHook preInstall - make PREFIX=$out GOFLAGS="$GOFLAGS -tags=notmuch" install - wrapPythonProgramsIn $out/share/aerc/filters "$out $pythonPath" + + make $makeFlags GOFLAGS="$GOFLAGS -tags=notmuch" install + runHook postInstall ''; |