gmic: fix cross build (#375571)

authored by Colin and committed by GitHub f32a1232 c6eac873

+6
+6
pkgs/by-name/gm/gmic/package.nix
··· 3 stdenv, 4 fetchFromGitHub, 5 fetchurl, 6 cimg, 7 cmake, 8 common-updater-scripts, ··· 96 + lib.optionalString stdenv.hostPlatform.isDarwin '' 97 substituteInPlace CMakeLists.txt \ 98 --replace "LD_LIBRARY_PATH" "DYLD_LIBRARY_PATH" 99 ''; 100 101 passthru = {
··· 3 stdenv, 4 fetchFromGitHub, 5 fetchurl, 6 + buildPackages, 7 cimg, 8 cmake, 9 common-updater-scripts, ··· 97 + lib.optionalString stdenv.hostPlatform.isDarwin '' 98 substituteInPlace CMakeLists.txt \ 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}' 105 ''; 106 107 passthru = {