about summary refs log tree commit diff
path: root/lib/systems/default.nix
diff options
context:
space:
mode:
authorJeff Huffman <tejing@tejing.com>2023-11-24 22:51:50 -0500
committerJeff Huffman <tejing@tejing.com>2023-12-03 16:23:44 -0500
commit94a3c175826801407a66f4f992407755fdebf83d (patch)
treedb67dd7b20e633e42dd59788920b10d7e154a66d /lib/systems/default.nix
parentab59f0dacc096d856f98c57500f366583b22059f (diff)
lib.systems.elaborate: add libDir attribute
Diffstat (limited to 'lib/systems/default.nix')
-rw-r--r--lib/systems/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/systems/default.nix b/lib/systems/default.nix
index 9eec21cbf21b9..6137d47e91a2a 100644
--- a/lib/systems/default.nix
+++ b/lib/systems/default.nix
@@ -89,6 +89,13 @@ rec {
         # is why we use the more obscure "bfd" and not "binutils" for this
         # choice.
         else                                     "bfd";
+      # The standard lib directory name that non-nixpkgs binaries distributed
+      # for this platform normally assume.
+      libDir = if final.isLinux then
+        if final.isx86_64 || final.isMips64 || final.isPower64
+        then "lib64"
+        else "lib"
+      else null;
       extensions = lib.optionalAttrs final.hasSharedLibraries {
         sharedLibrary =
           if      final.isDarwin  then ".dylib"