fsg: fix cross build

+10
+10
pkgs/by-name/fs/fsg/package.nix
··· 25 25 26 26 patches = [ ./wxgtk-3.2.patch ]; 27 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 + 28 34 hardeningDisable = [ "format" ]; 29 35 30 36 nativeBuildInputs = [ pkg-config ]; ··· 44 50 ' -i MainFrame.cpp 45 51 sed -re '/ctrans_prob/s/energy\[center][+]energy\[other]/(int)(fmin(energy[center]+energy[other],99))/g' -i Canvas.cpp 46 52 ''; 53 + 54 + makeFlags = [ 55 + "CPP=${stdenv.cc.targetPrefix}c++" 56 + ]; 47 57 48 58 installPhase = '' 49 59 mkdir -p $out/bin $out/libexec