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