@@ -1,12 +1,12 @@
1−{stdenv, fetchurl, yasm}:
1+{stdenv, fetchurl, yasm, enable10bit ? false}:
22
33stdenv.mkDerivation rec {
4− version = "snapshot-20130424-2245-stable";
5− name = "x264-20130424_2245";
4+ version = "snapshot-20141218-2245-stable";
5+ name = "x264-20141218-2245";
66
77 src = fetchurl {
88 url = "ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-${version}.tar.bz2";
9− sha256 = "0vzyqsgrm9k3hzka2p8ib92jl0ha8d4267r2rb3pr9gmpjaj9azk";
9+ sha256 = "1gp1f0382vh2hmgc23ldqyywcfljg8lsgl2849ymr14r6gxfh69m";
1010 };
1111
1212 patchPhase = ''
@@ -14,13 +14,16 @@ stdenv.mkDerivation rec {
1414 '';
1515
1616 configureFlags = [ "--enable-shared" ]
17− ++ stdenv.lib.optional (!stdenv.isi686) "--enable-pic";
17+ ++ stdenv.lib.optional (!stdenv.isi686) "--enable-pic"
18+ ++ stdenv.lib.optional (enable10bit) "--bit-depth=10";
1819
1920 buildInputs = [ yasm ];
2021
21− meta = {
22+ meta = with stdenv.lib; {
2223 description = "library for encoding H264/AVC video streams";
23− homepage = http://www.videolan.org/developers/x264.html;
24− license = "GPL";
24+ homepage = http://www.videolan.org/developers/x264.html;
25+ license = licenses.gpl2;
26+ platforms = platforms.unix;
27+ maintainers = [ maintainers.spwhitt ];
2528 };
2629}