1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00
nixpkgs/pkgs/applications/misc/get_iplayer/default.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

2017-03-23 01:27:43 +00:00
{stdenv, fetchFromGitHub, atomicparsley, flvstreamer, ffmpeg, makeWrapper, perl, buildPerlPackage, perlPackages, rtmpdump}:
with stdenv.lib;
buildPerlPackage rec {
name = "get_iplayer-${version}";
2017-03-23 01:27:43 +00:00
version = "2.99";
src = fetchFromGitHub {
owner = "get-iplayer";
repo = "get_iplayer";
rev = "v${version}";
sha256 = "085bgwkjnaqp96gvd2s8qmkw69rz91si1sgzqdqbplkzj9bk2qii";
};
2017-03-23 01:27:43 +00:00
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ perl ];
propagatedBuildInputs = with perlPackages; [HTMLParser HTTPCookies LWP 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
2017-03-23 01:27:43 +00:00
wrapProgram $out/bin/get_iplayer --suffix PATH : ${makeBinPath [ atomicparsley ffmpeg flvstreamer rtmpdump ]} --prefix PERL5LIB : $PERL5LIB
cp get_iplayer.1 $out/share/man/man1
'';
meta = {
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;
};
}