3
0
Fork 0
forked from mirrors/nixpkgs

asciidoctor: Only run patchelf on Linux

This commit is contained in:
Joe Hermaszewski 2018-04-12 20:14:20 +08:00
parent cb3f5a2d9c
commit dea879f8df

View file

@ -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")" \