3p/tvl/nix/buildGo: drop context to fix newer Nix

This commit is contained in:
Luke Granger-Brown 2024-06-09 00:52:59 +01:00
parent 520d8649f1
commit a6906cd1a6

View file

@ -109,7 +109,7 @@ let
analysisOutput = runCommand "${name}-structure.json" { } '' analysisOutput = runCommand "${name}-structure.json" { } ''
${analyser}/bin/analyser -path ${path} -source ${src} -tags "${lib.concatStringsSep " " tags}" ${if cgo then "-cgo" else ""} > $out ${analyser}/bin/analyser -path ${path} -source ${src} -tags "${lib.concatStringsSep " " tags}" ${if cgo then "-cgo" else ""} > $out
''; '';
analysis = fromJSON (readFile analysisOutput); analysis = fromJSON (builtins.unsafeDiscardStringContext (readFile analysisOutput));
in in
lib.fix (self: foldl' lib.recursiveUpdate { } ( lib.fix (self: foldl' lib.recursiveUpdate { } (
map (entry: mkset entry.locator (toPackage self src path depMap entry cgodeps cgocflags cgoldflags)) analysis map (entry: mkset entry.locator (toPackage self src path depMap entry cgodeps cgocflags cgoldflags)) analysis