nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1From e62f7d75380540937f24f896c82736a1e653cc75 Mon Sep 17 00:00:00 2001
2From: Randy Eckenrode <randy@largeandhighquality.com>
3Date: Mon, 22 Apr 2024 18:15:53 -0400
4Subject: [PATCH 5/6] Find ld64 in the store
5
6---
7 libstuff/execute.c | 5 +++++
8 1 file changed, 5 insertions(+)
9
10diff --git a/libstuff/execute.c b/libstuff/execute.c
11index 8526ab7..abbbf1b 100644
12--- a/libstuff/execute.c
13+++ b/libstuff/execute.c
14@@ -149,6 +149,11 @@ char *
15 cmd_with_prefix(
16 char *str)
17 {
18+ // Return the path to ld64 in the store.
19+ if (strcmp(str, "ld") == 0) {
20+ return "@ld64_path@";
21+ }
22+
23 int i;
24 char *p;
25 char *prefix, buf[MAXPATHLEN], resolved_name[PATH_MAX];
26--
272.45.2
28