14 buildPerlPackage rec {
15 pname = "WWW-YoutubeViewer";
18 src = fetchFromGitHub {
20 repo = "youtube-viewer";
22 sha256 = "9Z4fv2B0AnwtYsp7h9phnRMmHtBOMObIJvK8DmKQRxs=";
25 nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin shortenPerlShebang;
26 propagatedBuildInputs = [
32 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
33 shortenPerlShebang $out/bin/youtube-viewer
36 passthru.updateScript = gitUpdater { };
39 description = "Lightweight application for searching and streaming videos from YouTube";
40 homepage = "https://github.com/trizen/youtube-viewer";
41 license = with licenses; [ artistic2 ];
42 maintainers = with maintainers; [ woffs ];
43 mainProgram = "youtube-viewer";