13 ffmpeg = stdenv.mkDerivation rec {
18 url = "http://www.ffmpeg.org/releases/ffmpeg-${version}.tar.bz2";
19 sha256 = "03s1zsprz5p6gjgwwqcf7b6cvzwwid6l8k7bamx9i0f1iwkgdm0j";
22 configurePlatforms = [ ];
24 "--arch=${stdenv.hostPlatform.parsed.cpu.name}"
25 ] ++ lib.optionals stdenv.hostPlatform.isAarch32 [
26 # TODO be better with condition
30 "--enable-muxer=spdif"
33 "--enable-encoder=ac3"
34 "--enable-encoder=aac"
35 "--disable-decoder=mpeg_xvmc"
45 "--enable-protocol=http"
47 "--disable-runtime-cpudetect"
53 "--enable-hardcoded-tables"
54 "--disable-runtime-cpudetect"
56 "--arch=${stdenv.hostPlatform.parsed.cpu.name}"
57 "--target_os=${stdenv.hostPlatform.parsed.kernel.name}"
58 ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
59 "--cross-prefix=${stdenv.cc.targetPrefix}"
60 "--enable-cross-compile"
63 enableParallelBuilding = true;
66 homepage = "http://www.ffmpeg.org/";
67 description = "Complete, cross-platform solution to record, convert and stream audio and video";
71 stdenv.mkDerivation rec {
73 version = "unstable-2013-03-28";
75 src = fetchFromGitHub {
78 rev = "fbee325dc20441138d04d8d2022ad85956302e97";
79 sha256 = "0fkvv8il7ffqxki2gp8cxa5shh6sz9jsy5vv3f4025g4gss6afkg";
84 export INCLUDES="-I${raspberrypifw}/include/interface/vcos/pthreads -I${raspberrypifw}/include/interface/vmcs_host/linux/"
89 cp omxplayer.bin $out/bin
92 buildInputs = [ raspberrypifw ffmpeg pcre boost freetype zlib ];
95 homepage = "https://github.com/huceke/omxplayer";
96 description = "Commandline OMX player for the Raspberry Pi";
97 license = licenses.gpl2Plus;
98 platforms = platforms.arm;