diff options
author | Joe Hermaszewski <git@monoid.al> | 2018-04-12 20:14:20 +0800 |
---|---|---|
committer | Joe Hermaszewski <git@monoid.al> | 2018-04-12 20:14:20 +0800 |
commit | dea879f8df4778387dc88eb11f6ea0976fa82c27 (patch) | |
tree | 0761e4b9df93a5c3a683b383c699c32da0f856e7 /pkgs/tools/typesetting | |
parent | cb3f5a2d9c38d51fd9b4382dbdc8b3a895988b71 (diff) | |
download | nixlib-dea879f8df4778387dc88eb11f6ea0976fa82c27.tar nixlib-dea879f8df4778387dc88eb11f6ea0976fa82c27.tar.gz nixlib-dea879f8df4778387dc88eb11f6ea0976fa82c27.tar.bz2 nixlib-dea879f8df4778387dc88eb11f6ea0976fa82c27.tar.lz nixlib-dea879f8df4778387dc88eb11f6ea0976fa82c27.tar.xz nixlib-dea879f8df4778387dc88eb11f6ea0976fa82c27.tar.zst nixlib-dea879f8df4778387dc88eb11f6ea0976fa82c27.zip |
asciidoctor: Only run patchelf on Linux
Diffstat (limited to 'pkgs/tools/typesetting')
-rw-r--r-- | pkgs/tools/typesetting/asciidoctor/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/typesetting/asciidoctor/default.nix b/pkgs/tools/typesetting/asciidoctor/default.nix index 90ef7d4e0e60..f8cfe44cbd73 100644 --- a/pkgs/tools/typesetting/asciidoctor/default.nix +++ b/pkgs/tools/typesetting/asciidoctor/default.nix @@ -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")" \ |