about summary refs log tree commit diff
path: root/pkgs/applications/video/omxplayer
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2017-06-26 18:47:43 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2017-06-28 18:21:05 -0400
commit9c163cebdd5924b223745ec59928f456cd4587fc (patch)
tree511723488dad545457644aab3dbb5e647b50601b /pkgs/applications/video/omxplayer
parentffa535a0cc321a502d49240c859f2a761f0455d9 (diff)
omxplayer: Don't use stdenv.cross
Diffstat (limited to 'pkgs/applications/video/omxplayer')
-rw-r--r--pkgs/applications/video/omxplayer/default.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/applications/video/omxplayer/default.nix b/pkgs/applications/video/omxplayer/default.nix
index 01a85f3d95286..29345f7548d5f 100644
--- a/pkgs/applications/video/omxplayer/default.nix
+++ b/pkgs/applications/video/omxplayer/default.nix
@@ -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}"
         ];
     };