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

31 lines
955 B
Nix
Raw Normal View History

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