mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
screen: fix cross-compiling
This commit is contained in:
parent
5bd1b675c6
commit
4b17b8bba4
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue