Unverified Commit 0e21bc6a authored by Jörg Thalheim's avatar Jörg Thalheim Committed by GitHub
Browse files

buildGoModule: be nicer when overrideAttrs clears passthru (#339042)

parents e153e1de bc12ef1b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -176,7 +176,8 @@ in
    # Handle empty vendorHash; avoid
    # error: empty hash requires explicit hash algorithm
    outputHashAlgo = if finalAttrs.vendorHash == "" then "sha256" else null;
  }).overrideAttrs finalAttrs.passthru.overrideModAttrs;
    # in case an overlay clears passthru by accident, don't fail evaluation
  }).overrideAttrs (finalAttrs.passthru.overrideModAttrs or overrideModAttrs);

    nativeBuildInputs = [ go ] ++ nativeBuildInputs;