Merge pull request #168714 from thiagokokada/simplify-aerc
aerc: simplify derivation
This commit is contained in:
commit
38cf4f1141
1 changed files with 4 additions and 9 deletions
|
@ -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
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue