Fix goModules derivation: disable fixup to avoid store path references

The Go toolchain auto-download (triggered by `toolchain go1.25.8` in
go.mod) puts scripts with shebangs into the module cache. Nix fixup
phase patches these to reference /nix/store paths, violating the
fixed-output derivation contract. dontFixup = true leaves the cache
as-is, which is fine since these files are only consumed as build
inputs by the pyroscope derivation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-03-26 14:25:33 -07:00
commit 268645f561

View file

@ -34,6 +34,10 @@ let
cp -r $TMPDIR/go/pkg/mod $out
'';
# Disable fixup: patchelf and patchShebangs modify downloaded Go toolchain
# binaries, which makes the fixed-output derivation reference store paths
dontFixup = true;
outputHashMode = "recursive";
outputHash = pkgs.lib.fakeHash;
outputHashAlgo = "sha256";