2013-06-29 22:50:44 +04:00
|
|
|
{stdenv, fetchurl, flvstreamer, ffmpeg, makeWrapper, perl, buildPerlPackage, perlPackages, vlc, rtmpdump}:
|
|
|
|
buildPerlPackage {
|
2014-05-07 22:55:21 +04:00
|
|
|
name = "get_iplayer-2.86";
|
2011-08-30 04:14:16 +04:00
|
|
|
|
|
|
|
buildInputs = [makeWrapper perl];
|
2013-06-29 22:50:44 +04:00
|
|
|
propagatedBuildInputs = with perlPackages; [HTMLParser HTTPCookies LWP];
|
|
|
|
|
|
|
|
preConfigure = "touch Makefile.PL";
|
|
|
|
doCheck = false;
|
2011-08-30 04:14:16 +04:00
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-19 00:16:00 +04:00
|
|
|
mkdir -p $out/bin
|
2011-08-30 04:14:16 +04:00
|
|
|
cp get_iplayer $out/bin
|
2013-06-29 22:50:44 +04:00
|
|
|
sed -i 's|^update_script|#update_script|' $out/bin/get_iplayer
|
2014-05-07 22:55:21 +04:00
|
|
|
wrapProgram $out/bin/get_iplayer --suffix PATH : ${ffmpeg}/bin:${flvstreamer}/bin:${vlc}/bin:${rtmpdump}/bin --prefix PERL5LIB : $PERL5LIB
|
2011-08-30 04:14:16 +04:00
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchurl {
|
2014-05-07 22:55:21 +04:00
|
|
|
url = ftp://ftp.infradead.org/pub/get_iplayer/get_iplayer-2.86.tar.gz;
|
|
|
|
sha256 = "0zhcw0ikxrrz1jayx7jjgxmdf7gzk4pmzfvpraxmv64xwzgc1sc1";
|
2011-08-30 04:14:16 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|