nixpkgs/pkgs/development/libraries/x264/default.nix

27 lines
692 B
Nix
Raw Normal View History

{stdenv, fetchurl, yasm}:
stdenv.mkDerivation rec {
2013-05-12 11:42:27 +00:00
version = "snapshot-20130424-2245-stable";
name = "x264-20130424_2245";
src = fetchurl {
url = "ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-${version}.tar.bz2";
2013-05-12 11:42:27 +00:00
sha256 = "0vzyqsgrm9k3hzka2p8ib92jl0ha8d4267r2rb3pr9gmpjaj9azk";
};
patchPhase = ''
sed -i s,/bin/bash,${stdenv.shell}, configure version.sh
'';
configureFlags = [ "--enable-shared" ]
++ stdenv.lib.optional (!stdenv.isi686) "--enable-pic";
buildInputs = [ yasm ];
2013-05-12 11:42:27 +00:00
meta = {
description = "library for encoding H264/AVC video streams";
homepage = http://www.videolan.org/developers/x264.html;
license = "GPL";
};
}