Skip to content

Commit e4f02ef

Browse files
committedMay 18, 2017
ffmpeg: fix arm build
(cherry picked from commit 6679dbb)
1 parent 3e47e62 commit e4f02ef

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎pkgs/development/libraries/ffmpeg/generic.nix

+4-3
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ let
5555

5656
# Disable dependency that needs fixes before it will work on Darwin or Arm
5757
disDarwinOrArmFix = origArg: minVer: fixArg: if ((isDarwin || isArm) && reqMin minVer) then fixArg else origArg;
58+
59+
vaapiSupport = reqMin "0.6" && ((isLinux || isFreeBSD) && !isArm);
5860
in
5961

6062
assert openglSupport -> mesa != null;
@@ -121,7 +123,7 @@ stdenv.mkDerivation rec {
121123
"--enable-libmp3lame"
122124
(ifMinVer "1.2" "--enable-iconv")
123125
"--enable-libtheora"
124-
(ifMinVer "0.6" (enableFeature (isLinux || isFreeBSD) "vaapi"))
126+
(ifMinVer "0.6" (enableFeature vaapiSupport "vaapi"))
125127
"--enable-vdpau"
126128
"--enable-libvorbis"
127129
(disDarwinOrArmFix (ifMinVer "0.6" "--enable-libvpx") "0.6" "--disable-libvpx")
@@ -197,8 +199,7 @@ stdenv.mkDerivation rec {
197199
installFlags = [ "install-man" ];
198200

199201
passthru = {
200-
vaapiSupport = if reqMin "0.6" && ((isLinux || isFreeBSD) && !isArm) then true else false;
201-
inherit vdpauSupport;
202+
inherit vaapiSupport vdpauSupport;
202203
};
203204

204205
meta = with stdenv.lib; {

0 commit comments

Comments
 (0)