1 { lib, stdenv, fetchurl, flac, lame, zlib, libjpeg, libvorbis, libtheora, libxml2
2 , lzo, libdvdread, pkg-config, x264, libmpeg2, xvidcore }:
4 stdenv.mkDerivation rec {
8 url = "https://bitbucket.org/france/transcode-tcforge/downloads/${pname}-${version}.tar.bz2";
9 sha256 = "1e4e72d8e0dd62a80b8dd90699f5ca64c9b0cb37a5c9325c184166a9654f0a92";
12 nativeBuildInputs = [ pkg-config ];
13 buildInputs = [ flac lame zlib libjpeg libvorbis libtheora libxml2 lzo
14 libdvdread x264 libmpeg2 xvidcore ];
16 "--disable-ffmpeg" "--disable-libavcodec" "--disable-libavformat"
17 "--enable-lzo" "--enable-ogg" "--enable-vorbis" "--enable-theora" "--enable-libxml2"
18 "--enable-x264" "--enable-libmpeg2" "--enable-xvid"
21 enableParallelBuilding = true;
23 # Workaround build failure on -fno-common toolchains like upstream
24 # gcc-10. Otherwise build fails as:
25 # ld: tcextract-extract_pcm.o:/build/transcode-1.1.7/import/extract_pcm.c:36: multiple definition of
26 # `audio'; tcextract-extract_ac3.o:/build/transcode-1.1.7/import/extract_ac3.c:337: first defined here
27 env.NIX_CFLAGS_COMPILE = "-fcommon";
30 description = "Suite of command line utilities for transcoding video and audio codecs, and for converting between different container formats";
31 homepage = "http://www.transcoding.org/";
32 license = licenses.lgpl2Plus;
33 platforms = platforms.linux;