diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-10-12 14:31:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-12 14:31:00 +0100 |
commit | c31909ff693166ca07ac2d7ceae38390889666bf (patch) | |
tree | a170906231f8aba0411b3a44af1f24290e25a884 /pkgs | |
parent | 8635fbdb55b063fb92396bd179a5eb44dbf03708 (diff) | |
parent | 4b17b8bba4507a322148bf901cfec387d5cd5e89 (diff) | |
download | nixlib-c31909ff693166ca07ac2d7ceae38390889666bf.tar nixlib-c31909ff693166ca07ac2d7ceae38390889666bf.tar.gz nixlib-c31909ff693166ca07ac2d7ceae38390889666bf.tar.bz2 nixlib-c31909ff693166ca07ac2d7ceae38390889666bf.tar.lz nixlib-c31909ff693166ca07ac2d7ceae38390889666bf.tar.xz nixlib-c31909ff693166ca07ac2d7ceae38390889666bf.tar.zst nixlib-c31909ff693166ca07ac2d7ceae38390889666bf.zip |
Merge pull request #48269 from volth/patch-268
screen: fix cross-compiling
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/misc/screen/default.nix | 6 |
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; |