git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #48269 from volth/patch-268

screen: fix cross-compiling

commitc31909ff693166ca07ac2d7ceae38390889666bf authorJörg Thalheim <Mic92@users.noreply.github.com> dateFri 12 Oct 2018, 14:31 (8 years ago) parent8635fbd4b17b8b
1 file changed+6
pkgs/tools/misc/screen/default.nix+6
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