libav: Don't use stdenv.cross

This commit is contained in:
hsloan 2017-06-28 16:13:11 -04:00 committed by John Ericson
parent de1125ea2c
commit 58196b607e

View File

@ -13,6 +13,7 @@
, SDL # only for avplay in $bin, adds nontrivial closure to it
, enableGPL ? true # ToDo: some additional default stuff may need GPL
, enableUnfree ? faacSupport
, hostPlatform
}:
assert faacSupport -> enableUnfree;
@ -107,10 +108,10 @@ let
crossAttrs = {
configurePlatforms = [];
configureFlags = configureFlags ++ [
"--cross-prefix=${stdenv.cross.config}-"
"--cross-prefix=${stdenv.cc.prefix}"
"--enable-cross-compile"
"--target_os=linux"
"--arch=${stdenv.cross.arch}"
"--arch=${hostPlatform.arch}"
];
};