nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5 buildPerlPackage,
6 LWP,
7 LWPProtocolHttps,
8 DataDump,
9 JSON,
10 gitUpdater,
11}:
12
13buildPerlPackage rec {
14 pname = "WWW-YoutubeViewer";
15 version = "3.11.2";
16
17 src = fetchFromGitHub {
18 owner = "trizen";
19 repo = "youtube-viewer";
20 rev = version;
21 sha256 = "9Z4fv2B0AnwtYsp7h9phnRMmHtBOMObIJvK8DmKQRxs=";
22 };
23
24 propagatedBuildInputs = [
25 LWP
26 LWPProtocolHttps
27 DataDump
28 JSON
29 ];
30
31 passthru.updateScript = gitUpdater { };
32
33 meta = {
34 description = "Lightweight application for searching and streaming videos from YouTube";
35 homepage = "https://github.com/trizen/youtube-viewer";
36 license = with lib.licenses; [ artistic2 ];
37 maintainers = with lib.maintainers; [ woffs ];
38 mainProgram = "youtube-viewer";
39 };
40}