jxrlib; support cross-compilation

+4 -1
+4 -1
pkgs/development/libraries/jxrlib/default.nix
··· 13 13 sha256 = "0rk3hbh00nw0wgbfbqk1szrlfg3yq7w6ar16napww3nrlm9cj65w"; 14 14 }; 15 15 16 - postPatch = lib.optionalString stdenv.isDarwin '' 16 + postPatch = '' 17 + substituteInPlace Makefile \ 18 + --replace "cc" "$CC" 19 + '' + lib.optionalString stdenv.isDarwin '' 17 20 substituteInPlace Makefile \ 18 21 --replace '-shared' '-dynamiclib -undefined dynamic_lookup' \ 19 22 --replace '.so' '.dylib'