asciidoctor: Use an explicit path to patchelf
Hopefully fixing the Darwin build
This commit is contained in:
parent
16bc4ffc85
commit
cb3f5a2d9c
@ -1,7 +1,7 @@
|
|||||||
{ stdenv, lib, bundlerApp, ruby, curl
|
{ stdenv, lib, bundlerApp, ruby, curl
|
||||||
# Dependencies of the 'mathematical' package
|
# Dependencies of the 'mathematical' package
|
||||||
, cmake, bison, flex, glib, pkgconfig, cairo
|
, cmake, bison, flex, glib, pkgconfig, cairo
|
||||||
, pango, gdk_pixbuf, libxml2, python3
|
, pango, gdk_pixbuf, libxml2, python3, patchelf
|
||||||
}:
|
}:
|
||||||
|
|
||||||
bundlerApp {
|
bundlerApp {
|
||||||
@ -39,8 +39,8 @@ bundlerApp {
|
|||||||
# 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 = ''
|
||||||
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 \
|
${patchelf}/bin/patchelf \
|
||||||
--set-rpath "${lib.makeLibraryPath [ glib cairo ]}:$(patchelf --print-rpath "$soPath")" \
|
--set-rpath "${lib.makeLibraryPath [ glib cairo ]}:$(${patchelf}/bin/patchelf --print-rpath "$soPath")" \
|
||||||
"$soPath"
|
"$soPath"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user