2013-06-29 20:50:44 +02:00
|
|
|
{stdenv, fetchurl, flvstreamer, ffmpeg, makeWrapper, perl, buildPerlPackage, perlPackages, vlc, rtmpdump}:
|
|
|
|
buildPerlPackage {
|
2016-01-22 19:05:27 +01:00
|
|
|
name = "get_iplayer-2.94";
|
2011-08-30 02:14:16 +02:00
|
|
|
|
|
|
|
buildInputs = [makeWrapper perl];
|
2016-01-22 19:05:27 +01:00
|
|
|
propagatedBuildInputs = with perlPackages; [HTMLParser HTTPCookies LWP XMLSimple];
|
2013-06-29 20:50:44 +02:00
|
|
|
|
|
|
|
preConfigure = "touch Makefile.PL";
|
|
|
|
doCheck = false;
|
2016-04-18 10:49:20 +02:00
|
|
|
outputs = [ "out" "man" ];
|
2011-08-30 02:14:16 +02:00
|
|
|
|
2016-01-22 19:04:52 +01:00
|
|
|
patchPhase = ''
|
|
|
|
sed -e 's|^update_script|#update_script|' \
|
|
|
|
-e '/WARNING.*updater/d' \
|
|
|
|
-i get_iplayer
|
|
|
|
'';
|
|
|
|
|
2011-08-30 02:14:16 +02:00
|
|
|
installPhase = ''
|
2016-04-18 10:49:20 +02:00
|
|
|
mkdir -p $out/bin $out/share/man/man1
|
2011-08-30 02:14:16 +02:00
|
|
|
cp get_iplayer $out/bin
|
2015-10-11 16:34:23 +02:00
|
|
|
wrapProgram $out/bin/get_iplayer --suffix PATH : ${ffmpeg.bin}/bin:${flvstreamer}/bin:${vlc}/bin:${rtmpdump}/bin --prefix PERL5LIB : $PERL5LIB
|
2016-04-18 10:49:20 +02:00
|
|
|
cp get_iplayer.1 $out/share/man/man1
|
|
|
|
'';
|
2011-08-30 02:14:16 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-01-22 19:05:27 +01:00
|
|
|
url = ftp://ftp.infradead.org/pub/get_iplayer/get_iplayer-2.94.tar.gz;
|
|
|
|
sha256 = "16p0bw879fl8cs6rp37g1hgrcai771z6rcqk2nvm49kk39dx1zi4";
|
2011-08-30 02:14:16 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|