Commit 1d71d2e8 authored by sternenseemann's avatar sternenseemann
Browse files

buildBazelPackage: never append to fFetchAttrs.installPhase

In f8ee0612, the fallback installPhase
if fFetchAttrs.installPhase is not provided, became dynamically computed.
Due to operator precedence this had the side effect of appending to
fFetchAttrs.installPhase if it is provided, breaking custom
installPhases altogether.
parent 513e072b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -139,7 +139,7 @@ stdenv.mkDerivation (fBuildAttrs // {
      runHook postBuild
    '';

    installPhase = fFetchAttrs.installPhase or ''
    installPhase = fFetchAttrs.installPhase or (''
      runHook preInstall

      # Remove all built in external workspaces, Bazel will recreate them when building
@@ -183,7 +183,7 @@ stdenv.mkDerivation (fBuildAttrs // {
      (cd $bazelOut/ && tar czf $out --sort=name --mtime='@1' --owner=0 --group=0 --numeric-owner external/)

      runHook postInstall
    '';
    '');

    dontFixup = true;
    allowedRequisites = [];