f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
45 lines
998 B
Nix
45 lines
998 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPerlPackage,
|
|
shortenPerlShebang,
|
|
LWP,
|
|
LWPProtocolHttps,
|
|
DataDump,
|
|
JSON,
|
|
gitUpdater,
|
|
}:
|
|
|
|
buildPerlPackage rec {
|
|
pname = "WWW-YoutubeViewer";
|
|
version = "3.11.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "trizen";
|
|
repo = "youtube-viewer";
|
|
rev = version;
|
|
sha256 = "9Z4fv2B0AnwtYsp7h9phnRMmHtBOMObIJvK8DmKQRxs=";
|
|
};
|
|
|
|
nativeBuildInputs = lib.optional stdenv.isDarwin shortenPerlShebang;
|
|
propagatedBuildInputs = [
|
|
LWP
|
|
LWPProtocolHttps
|
|
DataDump
|
|
JSON
|
|
];
|
|
postInstall = lib.optionalString stdenv.isDarwin ''
|
|
shortenPerlShebang $out/bin/youtube-viewer
|
|
'';
|
|
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
meta = with lib; {
|
|
description = "Lightweight application for searching and streaming videos from YouTube";
|
|
homepage = "https://github.com/trizen/youtube-viewer";
|
|
license = with licenses; [ artistic2 ];
|
|
maintainers = with maintainers; [ woffs ];
|
|
mainProgram = "youtube-viewer";
|
|
};
|
|
}
|