Packaging/Binaries: Difference between revisions

imported>SuperSandro2000
m switch to pname
imported>Aidalgol
Using AutoPatchelfHook: Add mention of addAutoPatchelfSearchPath
Line 66: Line 66:
+    architectures = [ "x86" ];
+    architectures = [ "x86" ];
   };
   };
</pre>
=== Additional Library Paths ===
Some packages may put their library files somewhere other than <code>$out/lib/</code> in the install phase, while <code>autoPatchelfHook</code> by default only looks in that one directory for every package in <code>buildInputs</code>.  You can tell <code>autoPatchelfHook</code> to look in additional directories by passing it to the command <code>addAutoPatchelfSearchPath</code> in any phase before <code>autoPatchelfHook</code> is run.
For example,
<pre>
  preBuild = ''
    addAutoPatchelfSearchPath ${jre8}/lib/openjdk/jre/lib/
  '';
</pre>
</pre>