asciidoctor: Only run patchelf on Linux
commitdea879f8df4778387dc88eb11f6ea0976fa82c27
authorJoe Hermaszewski <git@monoid.al>
dateThu 12 Apr 2018, 20:14 (9 years ago)
parentcb3f5a2
pkgs/tools/typesetting/asciidoctor/default.nix+1−1
@@ -37,7 +37,7 @@ bundlerApp {
3737 dontUseCmakeConfigure = true;
3838
3939 # For some reason 'mathematical.so' is missing cairo and glib in its RPATH, add them explicitly here
40− postFixup = ''
40+ postFixup = lib.optionalString stdenv.isLinux ''
4141 soPath="$out/lib/ruby/gems/2.4.0/gems/mathematical-${attrs.version}/lib/mathematical/mathematical.so"
4242 ${patchelf}/bin/patchelf \
4343 --set-rpath "${lib.makeLibraryPath [ glib cairo ]}:$(${patchelf}/bin/patchelf --print-rpath "$soPath")" \