asciidoctor: Only run patchelf on Linux
This commit is contained in:
parent
cb3f5a2d9c
commit
dea879f8df
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ bundlerApp {
|
|||
dontUseCmakeConfigure = true;
|
||||
|
||||
# For some reason 'mathematical.so' is missing cairo and glib in its RPATH, add them explicitly here
|
||||
postFixup = ''
|
||||
postFixup = lib.optionalString stdenv.isLinux ''
|
||||
soPath="$out/lib/ruby/gems/2.4.0/gems/mathematical-${attrs.version}/lib/mathematical/mathematical.so"
|
||||
${patchelf}/bin/patchelf \
|
||||
--set-rpath "${lib.makeLibraryPath [ glib cairo ]}:$(${patchelf}/bin/patchelf --print-rpath "$soPath")" \
|
||||
|
|
Loading…
Reference in a new issue