about summary refs log tree commit diff
path: root/pkgs/applications/editors/mg
diff options
context:
space:
mode:
authorNikolay Korotkiy <sikmir@disroot.org>2022-04-20 14:21:08 +0300
committerNikolay Korotkiy <sikmir@disroot.org>2022-04-23 10:08:15 +0300
commitda727b72c93b358edc9b80d66971af7fef6ab3d4 (patch)
tree8a71d7f2b3e8e4f3c8c6a08c63b57610c4f343ed /pkgs/applications/editors/mg
parenteed65357919870061fba1fb6a70756041903f42b (diff)
downloadnixlib-da727b72c93b358edc9b80d66971af7fef6ab3d4.tar
nixlib-da727b72c93b358edc9b80d66971af7fef6ab3d4.tar.gz
nixlib-da727b72c93b358edc9b80d66971af7fef6ab3d4.tar.bz2
nixlib-da727b72c93b358edc9b80d66971af7fef6ab3d4.tar.lz
nixlib-da727b72c93b358edc9b80d66971af7fef6ab3d4.tar.xz
nixlib-da727b72c93b358edc9b80d66971af7fef6ab3d4.tar.zst
nixlib-da727b72c93b358edc9b80d66971af7fef6ab3d4.zip
mg: fix cross-compilation
Diffstat (limited to 'pkgs/applications/editors/mg')
-rw-r--r--pkgs/applications/editors/mg/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/editors/mg/default.nix b/pkgs/applications/editors/mg/default.nix
index c6f014238ea7..8545be13e3b9 100644
--- a/pkgs/applications/editors/mg/default.nix
+++ b/pkgs/applications/editors/mg/default.nix
@@ -11,6 +11,10 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-qnb0yB/NNJV257dsLmP84brajoRG03U+Ja1ACYbBvbE=";
   };
 
+  postPatch = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
+    substituteInPlace configure --replace "./conftest" "echo"
+  '';
+
   enableParallelBuilding = true;
 
   makeFlags = [ "PKG_CONFIG=${buildPackages.pkg-config}/bin/${buildPackages.pkg-config.targetPrefix}pkg-config" ];