summary refs log tree commit diff
path: root/pkgs/tools/misc
diff options
context:
space:
mode:
authorvolth <volth@webmaster.ms>2018-10-12 13:14:25 +0000
committerGitHub <noreply@github.com>2018-10-12 13:14:25 +0000
commit4b17b8bba4507a322148bf901cfec387d5cd5e89 (patch)
tree8f71c86cd0f634be6896dc6438d3207b065e753a /pkgs/tools/misc
parent5bd1b675c668cf249ebdeaf72ec6fe5b5f4fab00 (diff)
downloadnixlib-4b17b8bba4507a322148bf901cfec387d5cd5e89.tar
nixlib-4b17b8bba4507a322148bf901cfec387d5cd5e89.tar.gz
nixlib-4b17b8bba4507a322148bf901cfec387d5cd5e89.tar.bz2
nixlib-4b17b8bba4507a322148bf901cfec387d5cd5e89.tar.lz
nixlib-4b17b8bba4507a322148bf901cfec387d5cd5e89.tar.xz
nixlib-4b17b8bba4507a322148bf901cfec387d5cd5e89.tar.zst
nixlib-4b17b8bba4507a322148bf901cfec387d5cd5e89.zip
screen: fix cross-compiling
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r--pkgs/tools/misc/screen/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/misc/screen/default.nix b/pkgs/tools/misc/screen/default.nix
index 1753f52ab1b6..fd641ea613d5 100644
--- a/pkgs/tools/misc/screen/default.nix
+++ b/pkgs/tools/misc/screen/default.nix
@@ -23,6 +23,12 @@ stdenv.mkDerivation rec {
       stripLen = 1;
     });
 
+  postPatch = stdenv.lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform)
+    # XXX: Awful hack to allow cross-compilation.
+    '' sed -i ./configure \
+           -e 's/^as_fn_error .. \("cannot run test program while cross compiling\)/$as_echo \1/g'
+    ''; # "
+
   buildInputs = [ ncurses ] ++ stdenv.lib.optional stdenv.isLinux pam
                             ++ stdenv.lib.optional stdenv.isDarwin utmp;