diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-12-15 19:32:38 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-12-15 19:32:38 +0100 |
commit | 6b8e2555ef013b579cda57025b17d662e0f1fe1f (patch) | |
tree | 5a83c673af26c9976acd5a5dfa20e09e06898047 /nixpkgs/pkgs/stdenv/darwin | |
parent | 66ca7a150b5c051f0728f13134e6265cc46f370c (diff) | |
parent | 02357adddd0889782362d999628de9d309d202dc (diff) | |
download | nixlib-6b8e2555ef013b579cda57025b17d662e0f1fe1f.tar nixlib-6b8e2555ef013b579cda57025b17d662e0f1fe1f.tar.gz nixlib-6b8e2555ef013b579cda57025b17d662e0f1fe1f.tar.bz2 nixlib-6b8e2555ef013b579cda57025b17d662e0f1fe1f.tar.lz nixlib-6b8e2555ef013b579cda57025b17d662e0f1fe1f.tar.xz nixlib-6b8e2555ef013b579cda57025b17d662e0f1fe1f.tar.zst nixlib-6b8e2555ef013b579cda57025b17d662e0f1fe1f.zip |
Merge branch 'nixos-unstable-small' of https://github.com/NixOS/nixpkgs
Diffstat (limited to 'nixpkgs/pkgs/stdenv/darwin')
-rw-r--r-- | nixpkgs/pkgs/stdenv/darwin/fixed-xnu-python3.patch | 41 | ||||
-rw-r--r-- | nixpkgs/pkgs/stdenv/darwin/make-bootstrap-tools.nix | 7 |
2 files changed, 6 insertions, 42 deletions
diff --git a/nixpkgs/pkgs/stdenv/darwin/fixed-xnu-python3.patch b/nixpkgs/pkgs/stdenv/darwin/fixed-xnu-python3.patch deleted file mode 100644 index 9f29376187f4..000000000000 --- a/nixpkgs/pkgs/stdenv/darwin/fixed-xnu-python3.patch +++ /dev/null @@ -1,41 +0,0 @@ -diff --git a/bsd/kern/makekdebugevents.py b/bsd/kern/makekdebugevents.py -index 73b2db4..d354ba0 100755 ---- a/bsd/kern/makekdebugevents.py -+++ b/bsd/kern/makekdebugevents.py -@@ -5,7 +5,7 @@ - # named kd_events[] or these mappings. - # Required to generate a header file used by DEVELOPMENT and DEBUG kernels. - # -- -+ - import sys - import re - -@@ -21,18 +21,18 @@ code_table = [] - # scan file to generate internal table - with open(trace_code_file, 'rt') as codes: - for line in codes: -- m = id_name_pattern.match(line) -- if m: -+ m = id_name_pattern.match(line) -+ if m: - code_table += [(int(m.group(1),base=16), m.group(2))] - - # emit typedef: --print "typedef struct {" --print " uint32_t id;" --print " const char *name;" --print "} kd_event_t;" -+print("typedef struct {") -+print(" uint32_t id;") -+print(" const char *name;") -+print("} kd_event_t;") - # emit structure declaration and sorted initialization: --print "kd_event_t kd_events[] = {" -+print("kd_event_t kd_events[] = {") - for mapping in sorted(code_table, key=lambda x: x[0]): -- print " {0x%x, \"%s\"}," % mapping --print "};" -+ print(" {0x%x, \"%s\"}," % mapping) -+print("};") - diff --git a/nixpkgs/pkgs/stdenv/darwin/make-bootstrap-tools.nix b/nixpkgs/pkgs/stdenv/darwin/make-bootstrap-tools.nix index 1324c78c5fd6..384567739d0e 100644 --- a/nixpkgs/pkgs/stdenv/darwin/make-bootstrap-tools.nix +++ b/nixpkgs/pkgs/stdenv/darwin/make-bootstrap-tools.nix @@ -32,11 +32,16 @@ let cross = if crossSystem != null in with import pkgspath ({ inherit localSystem overlays; } // cross // custom-bootstrap); rec { - coreutils_ = coreutils.override (args: { + coreutils_ = (coreutils.override (args: { # We want coreutils without ACL support. aclSupport = false; # Cannot use a single binary build, or it gets dynamically linked against gmp. singleBinary = false; + })).overrideAttrs (oa: { + # Increase header size to be able to inject extra RPATHs. Otherwise + # x86_64-darwin build fails as: + # https://cache.nixos.org/log/g5wyq9xqshan6m3kl21bjn1z88hx48rh-stdenv-bootstrap-tools.drv + NIX_LDFLAGS = (oa.NIX_LDFLAGS or "") + " -headerpad_max_install_names"; }); cctools_ = darwin.cctools; |