12 perlPackages.buildPerlPackage rec {
13 pname = "get_iplayer";
16 src = fetchFromGitHub {
17 owner = "get-iplayer";
20 hash = "sha256-KuDNngHOoeEHJExEHoLdNO95ZUvLx8TWiAOTmRKHtmQ=";
23 nativeBuildInputs = [ makeWrapper ] ++ lib.optional stdenv.isDarwin shortenPerlShebang;
24 buildInputs = [ perl ];
25 propagatedBuildInputs = with perlPackages; [
26 LWP LWPProtocolHttps XMLLibXML Mojolicious
29 preConfigure = "touch Makefile.PL";
31 outputs = [ "out" "man" ];
36 install -D get_iplayer -t $out/bin
37 wrapProgram $out/bin/get_iplayer --suffix PATH : ${lib.makeBinPath [ atomicparsley ffmpeg ]} --prefix PERL5LIB : $PERL5LIB
38 install -D get_iplayer.1 -t $out/share/man/man1
43 postInstall = lib.optionalString stdenv.isDarwin ''
44 shortenPerlShebang $out/bin/.get_iplayer-wrapped
48 description = "Downloads TV and radio programmes from BBC iPlayer and BBC Sounds";
49 license = licenses.gpl3Plus;
50 homepage = "https://github.com/get-iplayer/get_iplayer";
51 platforms = platforms.all;
52 maintainers = with maintainers; [ rika jgarcia ];