lol
1{ stdenv, fetchurl, pkgconfig, python, yasm
2, gst-plugins-base, orc, bzip2
3, withSystemLibav ? true, libav ? null
4}:
5
6assert withSystemLibav -> libav != null;
7
8stdenv.mkDerivation rec {
9 name = "gst-libav-1.4.5";
10
11 meta = {
12 homepage = "http://gstreamer.freedesktop.org";
13 license = stdenv.lib.licenses.lgpl2Plus;
14 platforms = stdenv.lib.platforms.linux;
15 maintainers = with stdenv.lib.maintainers; [ iyzsong ];
16 };
17
18 src = fetchurl {
19 url = "${meta.homepage}/src/gst-libav/${name}.tar.xz";
20 sha256 = "1g7vg9amh3cc3nmc415h6g2rqxqi4wgwqi08hxfbpwq48ri64p30";
21 };
22
23 configureFlags = stdenv.lib.optionalString withSystemLibav
24 "--with-system-libav";
25
26 nativeBuildInputs = with stdenv.lib;
27 [ pkgconfig python ]
28 ++ optional (!withSystemLibav) yasm
29 ;
30
31 buildInputs = with stdenv.lib;
32 [ gst-plugins-base orc bzip2 ]
33 ++ optional withSystemLibav libav
34 ;
35}