omxplayer: Don't use stdenv.cross

This commit is contained in:
John Ericson 2017-06-26 18:47:43 -04:00
parent ffa535a0cc
commit 9c163cebdd

View file

@ -1,4 +1,7 @@
{ stdenv, fetchurl, raspberrypifw, pcre, boost, freetype, zlib }:
{ stdenv, fetchurl
, raspberrypifw, pcre, boost, freetype, zlib
, hostPlatform
}:
let
ffmpeg = stdenv.mkDerivation rec {
@ -46,10 +49,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}"
];
};