forked from mirrors/nixpkgs
asciidoctor: Only run patchelf on Linux
This commit is contained in:
parent
cb3f5a2d9c
commit
dea879f8df
|
@ -37,7 +37,7 @@ bundlerApp {
|
||||||
dontUseCmakeConfigure = true;
|
dontUseCmakeConfigure = true;
|
||||||
|
|
||||||
# For some reason 'mathematical.so' is missing cairo and glib in its RPATH, add them explicitly here
|
# 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"
|
soPath="$out/lib/ruby/gems/2.4.0/gems/mathematical-${attrs.version}/lib/mathematical/mathematical.so"
|
||||||
${patchelf}/bin/patchelf \
|
${patchelf}/bin/patchelf \
|
||||||
--set-rpath "${lib.makeLibraryPath [ glib cairo ]}:$(${patchelf}/bin/patchelf --print-rpath "$soPath")" \
|
--set-rpath "${lib.makeLibraryPath [ glib cairo ]}:$(${patchelf}/bin/patchelf --print-rpath "$soPath")" \
|
||||||
|
|
Loading…
Reference in a new issue