fsg: fix cross build

+10
+10
pkgs/by-name/fs/fsg/package.nix
··· 25 26 patches = [ ./wxgtk-3.2.patch ]; 27 28 hardeningDisable = [ "format" ]; 29 30 nativeBuildInputs = [ pkg-config ]; ··· 44 ' -i MainFrame.cpp 45 sed -re '/ctrans_prob/s/energy\[center][+]energy\[other]/(int)(fmin(energy[center]+energy[other],99))/g' -i Canvas.cpp 46 ''; 47 48 installPhase = '' 49 mkdir -p $out/bin $out/libexec
··· 25 26 patches = [ ./wxgtk-3.2.patch ]; 27 28 + # use correct wx-config for cross-compiling 29 + postPatch = '' 30 + substituteInPlace makefile \ 31 + --replace-fail 'wx-config' "${lib.getExe' wxGTK32 "wx-config"}" 32 + ''; 33 + 34 hardeningDisable = [ "format" ]; 35 36 nativeBuildInputs = [ pkg-config ]; ··· 50 ' -i MainFrame.cpp 51 sed -re '/ctrans_prob/s/energy\[center][+]energy\[other]/(int)(fmin(energy[center]+energy[other],99))/g' -i Canvas.cpp 52 ''; 53 + 54 + makeFlags = [ 55 + "CPP=${stdenv.cc.targetPrefix}c++" 56 + ]; 57 58 installPhase = '' 59 mkdir -p $out/bin $out/libexec