summary refs log tree commit diff
path: root/pkgs/top-level/all-packages.nix
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2018-09-11 18:17:20 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-09-15 01:14:31 -0400
commitb8ce6a31f555a2e4471880cc4c01b629e7d6d36f (patch)
treeb45d7f3831400cdf844acd84fb5dbbe30f2aeb3c /pkgs/top-level/all-packages.nix
parent2205beaa8c95746e1ed580875dea202e93a85b5d (diff)
downloadnixlib-b8ce6a31f555a2e4471880cc4c01b629e7d6d36f.tar
nixlib-b8ce6a31f555a2e4471880cc4c01b629e7d6d36f.tar.gz
nixlib-b8ce6a31f555a2e4471880cc4c01b629e7d6d36f.tar.bz2
nixlib-b8ce6a31f555a2e4471880cc4c01b629e7d6d36f.tar.lz
nixlib-b8ce6a31f555a2e4471880cc4c01b629e7d6d36f.tar.xz
nixlib-b8ce6a31f555a2e4471880cc4c01b629e7d6d36f.tar.zst
nixlib-b8ce6a31f555a2e4471880cc4c01b629e7d6d36f.zip
elf-header: Init at <libc version>
A little shim derivation to get this header for Darwin, where it is
needed for cross compilation.

There's no real reason to do glibc and musl like that, but as I'm
maintaining it I suppose I can go overboard like that.
Diffstat (limited to 'pkgs/top-level/all-packages.nix')
-rw-r--r--pkgs/top-level/all-packages.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index e09e89b0b90e..f9df4ea4fb83 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -9513,6 +9513,14 @@ with pkgs;
     installLocales = config.glibc.locales or false;
   };
 
+  # Provided by libc on Operating Systems that use the Extensible Linker Format.
+  elf-header =
+    if stdenv.hostPlatform.parsed.kernel.execFormat.name == "elf"
+    then null
+    else elf-header-real;
+
+  elf-header-real = callPackage ../development/libraries/elf-header { };
+
   glibc_memusage = callPackage ../development/libraries/glibc {
     installLocales = false;
     withGd = true;