File tree 1 file changed +4
-3
lines changed
pkgs/development/libraries/ffmpeg
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 55
55
56
56
# Disable dependency that needs fixes before it will work on Darwin or Arm
57
57
disDarwinOrArmFix = origArg : minVer : fixArg : if ( ( isDarwin || isArm ) && reqMin minVer ) then fixArg else origArg ;
58
+
59
+ vaapiSupport = reqMin "0.6" && ( ( isLinux || isFreeBSD ) && ! isArm ) ;
58
60
in
59
61
60
62
assert openglSupport -> mesa != null ;
@@ -121,7 +123,7 @@ stdenv.mkDerivation rec {
121
123
"--enable-libmp3lame"
122
124
( ifMinVer "1.2" "--enable-iconv" )
123
125
"--enable-libtheora"
124
- ( ifMinVer "0.6" ( enableFeature ( isLinux || isFreeBSD ) "vaapi" ) )
126
+ ( ifMinVer "0.6" ( enableFeature vaapiSupport "vaapi" ) )
125
127
"--enable-vdpau"
126
128
"--enable-libvorbis"
127
129
( disDarwinOrArmFix ( ifMinVer "0.6" "--enable-libvpx" ) "0.6" "--disable-libvpx" )
@@ -197,8 +199,7 @@ stdenv.mkDerivation rec {
197
199
installFlags = [ "install-man" ] ;
198
200
199
201
passthru = {
200
- vaapiSupport = if reqMin "0.6" && ( ( isLinux || isFreeBSD ) && ! isArm ) then true else false ;
201
- inherit vdpauSupport ;
202
+ inherit vaapiSupport vdpauSupport ;
202
203
} ;
203
204
204
205
meta = with stdenv . lib ; {
You can’t perform that action at this time.
0 commit comments