2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub, buildPerlPackage, shortenPerlShebang, LWP, LWPProtocolHttps, DataDump, JSON }:
|
|
|
|
|
|
|
|
buildPerlPackage rec {
|
|
|
|
pname = "WWW-YoutubeViewer";
|
2020-10-07 09:15:18 +00:00
|
|
|
version = "3.7.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "trizen";
|
|
|
|
repo = "youtube-viewer";
|
|
|
|
rev = version;
|
2020-10-07 09:15:18 +00:00
|
|
|
sha256 = "16p0sa91h0zpqdpqmy348g6b9qj5f6qrbzrljn157vk00cg6mx18";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin shortenPerlShebang;
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
LWP
|
|
|
|
LWPProtocolHttps
|
|
|
|
DataDump
|
|
|
|
JSON
|
|
|
|
];
|
|
|
|
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
|
|
shortenPerlShebang $out/bin/youtube-viewer
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A lightweight application for searching and streaming videos from YouTube";
|
|
|
|
homepage = "https://github.com/trizen/youtube-viewer";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ woffs ];
|
|
|
|
license = with stdenv.lib.licenses; [ artistic2 ];
|
|
|
|
};
|
|
|
|
}
|