From dea879f8df4778387dc88eb11f6ea0976fa82c27 Mon Sep 17 00:00:00 2001 From: Joe Hermaszewski Date: Thu, 12 Apr 2018 20:14:20 +0800 Subject: [PATCH] asciidoctor: Only run patchelf on Linux --- pkgs/tools/typesetting/asciidoctor/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")" \