diff options
author | Lluís Batlle i Rossell <viric@viric.name> | 2013-03-29 21:53:44 +0100 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@viric.name> | 2013-03-29 21:54:29 +0100 |
commit | a76a9f783e53591372698f5bd09cb4ca3dc18699 (patch) | |
tree | bfde1af6e87ef4056c852442d23caae38e5f78d4 /pkgs/applications/video | |
parent | 64e4027d91fa0b21ed08a338fd258d2d2858f677 (diff) | |
download | nixlib-a76a9f783e53591372698f5bd09cb4ca3dc18699.tar nixlib-a76a9f783e53591372698f5bd09cb4ca3dc18699.tar.gz nixlib-a76a9f783e53591372698f5bd09cb4ca3dc18699.tar.bz2 nixlib-a76a9f783e53591372698f5bd09cb4ca3dc18699.tar.lz nixlib-a76a9f783e53591372698f5bd09cb4ca3dc18699.tar.xz nixlib-a76a9f783e53591372698f5bd09cb4ca3dc18699.tar.zst nixlib-a76a9f783e53591372698f5bd09cb4ca3dc18699.zip |
Adding omxplayer, for the raspberrypi.
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r-- | pkgs/applications/video/omxplayer/default.nix | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/pkgs/applications/video/omxplayer/default.nix b/pkgs/applications/video/omxplayer/default.nix new file mode 100644 index 000000000000..b3880067cac4 --- /dev/null +++ b/pkgs/applications/video/omxplayer/default.nix @@ -0,0 +1,84 @@ +{ stdenv, fetchurl, raspberrypifw, pcre, boostHeaders, freetype, zlib }: + +let + ffmpeg = stdenv.mkDerivation rec { + name = "ffmpeg-1.1.3"; + + src = fetchurl { + url = "http://www.ffmpeg.org/releases/${name}.tar.bz2"; + sha256 = "03s1zsprz5p6gjgwwqcf7b6cvzwwid6l8k7bamx9i0f1iwkgdm0j"; + }; + + configureFlags = [ + "--arch=arm" + "--cpu=arm1176jzf-s" + "--disable-muxers" + "--enable-muxer=spdif" + "--enable-muxer=adts" + "--disable-encoders" + "--enable-encoder=ac3" + "--enable-encoder=aac" + "--disable-decoder=mpeg_xvmc" + "--disable-devices" + "--disable-ffprobe" + "--disable-ffplay" + "--disable-ffserver" + "--disable-ffmpeg" + "--enable-shared" + "--disable-doc" + "--enable-postproc" + "--enable-gpl" + "--enable-protocol=http" + "--enable-pthreads" + "--disable-runtime-cpudetect" + "--enable-pic" + "--disable-armv5te" + "--disable-neon" + "--enable-armv6t2" + "--enable-armv6" + "--enable-hardcoded-tables" + "--disable-runtime-cpudetect" + "--disable-debug" + ]; + + enableParallelBuilding = true; + + crossAttrs = { + dontSetConfigureCross = true; + configureFlags = configureFlags ++ [ + "--cross-prefix=${stdenv.cross.config}-" + "--enable-cross-compile" + "--target_os=linux" + "--arch=${stdenv.cross.arch}" + ]; + }; + + meta = { + homepage = http://www.ffmpeg.org/; + description = "A complete, cross-platform solution to record, convert and stream audio and video"; + }; + }; +in +stdenv.mkDerivation rec { + name = "omxplayer-20130328-fbee325dc2"; + src = fetchurl { + url = https://github.com/huceke/omxplayer/tarball/fbee325dc2; + name = "${name}.tar.gz"; + sha256 = "0fkvv8il7ffqxki2gp8cxa5shh6sz9jsy5vv3f4025g4gss6afkg"; + }; + patchPhase = '' + sed -i 1d Makefile + export INCLUDES="-I${raspberrypifw}/include/interface/vcos/pthreads -I${raspberrypifw}/include/interface/vmcs_host/linux/" + ''; + installPhase = '' + ensureDir $out/bin + cp omxplayer.bin $out/bin + ''; + buildInputs = [ raspberrypifw ffmpeg pcre boostHeaders freetype zlib ]; + + meta = { + homepage = https://github.com/huceke/omxplayer; + description = "Commandline OMX player for the Raspberry Pi"; + license = "GPLv2+"; + }; +} |