gmic: fix cross build (#375571)

authored by Colin and committed by GitHub f32a1232 c6eac873

+6
+6
pkgs/by-name/gm/gmic/package.nix
··· 3 3 stdenv, 4 4 fetchFromGitHub, 5 5 fetchurl, 6 + buildPackages, 6 7 cimg, 7 8 cmake, 8 9 common-updater-scripts, ··· 96 97 + lib.optionalString stdenv.hostPlatform.isDarwin '' 97 98 substituteInPlace CMakeLists.txt \ 98 99 --replace "LD_LIBRARY_PATH" "DYLD_LIBRARY_PATH" 100 + '' 101 + + lib.optionalString (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' 102 + substituteInPlace CMakeLists.txt --replace-fail \ 103 + 'LD_LIBRARY_PATH=''${GMIC_BINARIES_PATH} ''${GMIC_BINARIES_PATH}/gmic' \ 104 + '${lib.getExe buildPackages.gmic}' 99 105 ''; 100 106 101 107 passthru = {