about summary refs log tree commit diff
path: root/pkgs/development/libraries/ffmpeg/default.nix
blob: a611a192d81d206b83fad800c43350557bc06fe8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{stdenv, fetchurl, faad2}:

stdenv.mkDerivation {
  name = "ffmpeg-0.5";
  
  src = fetchurl {
    url = http://www.ffmpeg.org/releases/ffmpeg-0.5.tar.bz2;
    sha1 = "f930971bc0ac3d11a4ffbb1af439425c24f6f5b1";
  };
  
  # `--enable-gpl' (as well as the `postproc' and `swscale') mean that
  # the resulting library is GPL'ed, so it can only be used in GPL'ed
  # applications.
  configureFlags = ''
    --enable-gpl
    --enable-postproc
    --enable-swscale
    --disable-ffserver
    --disable-ffplay
    --enable-libfaad
    --enable-shared
  '';

  buildInputs = [faad2];

  meta = {
    homepage = http://www.ffmpeg.org/;
    description = "A complete, cross-platform solution to record, convert and stream audio and video";
  };
}