screen: fix cross-compiling
commit4b17b8bba4507a322148bf901cfec387d5cd5e89
authorvolth <volth@webmaster.ms>
dateFri 12 Oct 2018, 13:14 (8 years ago)
parent5bd1b67
pkgs/tools/misc/screen/default.nix+6
@@ -23,6 +23,12 @@ stdenv.mkDerivation rec {
2323 stripLen = 1;
2424 });
2525
26+ postPatch = stdenv.lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform)
27+ # XXX: Awful hack to allow cross-compilation.
28+ '' sed -i ./configure \
29+ -e 's/^as_fn_error .. \("cannot run test program while cross compiling\)/$as_echo \1/g'
30+ ''; # "
31+
2632 buildInputs = [ ncurses ] ++ stdenv.lib.optional stdenv.isLinux pam
2733 ++ stdenv.lib.optional stdenv.isDarwin utmp;
2834