2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, atomicparsley, flvstreamer, ffmpeg_3, makeWrapper, perl, perlPackages, rtmpdump}:
|
2017-03-23 01:27:43 +00:00
|
|
|
|
2021-01-15 05:42:41 +00:00
|
|
|
with lib;
|
2017-03-23 01:27:43 +00:00
|
|
|
|
2018-10-12 23:10:38 +00:00
|
|
|
perlPackages.buildPerlPackage rec {
|
2019-06-20 13:07:56 +00:00
|
|
|
pname = "get_iplayer";
|
2019-12-28 20:08:33 +00:00
|
|
|
version = "3.24";
|
2018-10-12 23:10:38 +00:00
|
|
|
|
2017-03-23 01:27:43 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "get-iplayer";
|
|
|
|
repo = "get_iplayer";
|
|
|
|
rev = "v${version}";
|
2019-12-28 20:08:33 +00:00
|
|
|
sha256 = "0yd84ncb6cjrk4v4kz3zrddkl7iwkm3zlfbjyswd9hanp8fvd4q3";
|
2017-03-23 01:27:43 +00:00
|
|
|
};
|
2011-08-30 00:14:16 +00:00
|
|
|
|
2017-03-23 01:27:43 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ perl ];
|
2019-12-28 20:08:33 +00:00
|
|
|
propagatedBuildInputs = with perlPackages; [
|
|
|
|
HTMLParser HTTPCookies LWP LWPProtocolHttps XMLLibXML XMLSimple
|
|
|
|
];
|
2013-06-29 18:50:44 +00:00
|
|
|
|
|
|
|
preConfigure = "touch Makefile.PL";
|
|
|
|
doCheck = false;
|
2016-04-18 08:49:20 +00:00
|
|
|
outputs = [ "out" "man" ];
|
2011-08-30 00:14:16 +00:00
|
|
|
|
2016-10-06 22:17:43 +00:00
|
|
|
installPhase = ''
|
2016-04-18 08:49:20 +00:00
|
|
|
mkdir -p $out/bin $out/share/man/man1
|
2011-08-30 00:14:16 +00:00
|
|
|
cp get_iplayer $out/bin
|
2020-06-07 12:39:09 +00:00
|
|
|
wrapProgram $out/bin/get_iplayer --suffix PATH : ${makeBinPath [ atomicparsley ffmpeg_3 flvstreamer rtmpdump ]} --prefix PERL5LIB : $PERL5LIB
|
2016-04-18 08:49:20 +00:00
|
|
|
cp get_iplayer.1 $out/share/man/man1
|
|
|
|
'';
|
2016-10-06 22:17:43 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Downloads TV and radio from BBC iPlayer";
|
2017-03-23 01:27:43 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://squarepenguin.co.uk/";
|
2017-03-23 01:27:43 +00:00
|
|
|
platforms = platforms.all;
|
2019-12-28 20:08:33 +00:00
|
|
|
maintainers = with maintainers; [ rika ];
|
2011-08-30 00:14:16 +00:00
|
|
|
};
|
2018-10-12 23:10:38 +00:00
|
|
|
|
2011-08-30 00:14:16 +00:00
|
|
|
}
|