nixpkgs/pkgs/applications/misc/get_iplayer/default.nix

40 lines
1.1 KiB
Nix
Raw Normal View History

2021-04-29 08:09:34 +00:00
{ lib, fetchFromGitHub, atomicparsley, flvstreamer, ffmpeg, makeWrapper, perl, perlPackages, rtmpdump}:
2017-03-23 01:27:43 +00:00
perlPackages.buildPerlPackage rec {
pname = "get_iplayer";
2021-04-29 08:09:34 +00:00
version = "3.27";
2017-03-23 01:27:43 +00:00
src = fetchFromGitHub {
owner = "get-iplayer";
repo = "get_iplayer";
rev = "v${version}";
2021-04-29 08:09:34 +00:00
sha256 = "077y31gg020wjpx5pcivqgkqawcjxh5kjnvq97x2gd7i3wwc30qi";
2017-03-23 01:27:43 +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
];
preConfigure = "touch Makefile.PL";
doCheck = false;
outputs = [ "out" "man" ];
installPhase = ''
mkdir -p $out/bin $out/share/man/man1
cp get_iplayer $out/bin
wrapProgram $out/bin/get_iplayer --suffix PATH : ${lib.makeBinPath [ atomicparsley ffmpeg flvstreamer rtmpdump ]} --prefix PERL5LIB : $PERL5LIB
cp get_iplayer.1 $out/share/man/man1
'';
meta = with lib; {
description = "Downloads TV and radio from BBC iPlayer";
2017-03-23 01:27:43 +00:00
license = licenses.gpl3Plus;
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 ];
};
}