get_iplayer: bugfix (#250361)

authored by chewblacka and committed by GitHub 615d20e7 a6fe0275

+17 -3
+17 -3
pkgs/applications/misc/get_iplayer/default.nix
··· 1 - { lib, fetchFromGitHub, stdenv, shortenPerlShebang, atomicparsley, flvstreamer, ffmpeg, makeWrapper, perl, perlPackages, rtmpdump}: 1 + { lib 2 + , perlPackages 3 + , fetchFromGitHub 4 + , makeWrapper 5 + , stdenv 6 + , shortenPerlShebang 7 + , perl 8 + , atomicparsley 9 + , ffmpeg 10 + , flvstreamer 11 + , rtmpdump 12 + }: 2 13 3 14 perlPackages.buildPerlPackage rec { 4 15 pname = "get_iplayer"; ··· 11 22 sha256 = "+ChCF27nmPKbqaZVxsZ6TlbzSdEz6RfMs87NE8xaSRw="; 12 23 }; 13 24 14 - nativeBuildInputs = [ makeWrapper ]; 15 - buildInputs = [ perl ] ++ lib.optional stdenv.isDarwin shortenPerlShebang; 25 + nativeBuildInputs = [ makeWrapper ] ++ lib.optional stdenv.isDarwin shortenPerlShebang; 26 + buildInputs = [ perl ]; 16 27 propagatedBuildInputs = with perlPackages; [ 17 28 HTMLParser HTTPCookies LWP LWPProtocolHttps XMLLibXML XMLSimple Mojolicious 18 29 ]; ··· 22 33 outputs = [ "out" "man" ]; 23 34 24 35 installPhase = '' 36 + runHook preInstall 25 37 mkdir -p $out/bin $out/share/man/man1 26 38 cp get_iplayer $out/bin 27 39 wrapProgram $out/bin/get_iplayer --suffix PATH : ${lib.makeBinPath [ atomicparsley ffmpeg flvstreamer rtmpdump ]} --prefix PERL5LIB : $PERL5LIB 28 40 cp get_iplayer.1 $out/share/man/man1 41 + runHook postInstall 29 42 ''; 43 + 30 44 postInstall = lib.optionalString stdenv.isDarwin '' 31 45 shortenPerlShebang $out/bin/.get_iplayer-wrapped 32 46 '';