1 { mkDerivation, lib, fetchFromGitHub, phonon, phonon-backend-vlc, qtbase, qmake
2 , qtdeclarative, qttools, qtx11extras, mpv
4 # "Free" key generated by pasqui23
5 , withAPIKey ? "AIzaSyBQvZXseEVvgu5Ega_DI-AIJ55v0OsHmVY" }:
11 src = fetchFromGitHub {
12 hash = "sha256-ROqROQsV8ddrxYT5mMdkf6rCgCoGr1jpxQ1ohcoEaQs=";
15 owner = "flaviotordini";
16 fetchSubmodules = true;
20 # Taken from FreeBSD; already merged upstream in the media submodule
21 # (https://github.com/flaviotordini/media/commit/f6b7020f273e1fc06e6e204fab37a7c8edaa857a)
22 ./lib_media_src_mpv_mpvwidget.patch
25 nativeBuildInputs = [ qmake qttools ];
27 buildInputs = [ phonon phonon-backend-vlc qtbase qtdeclarative qtx11extras mpv ];
29 qmakeFlags = [ "DEFINES+=APP_GOOGLE_API_KEY=${withAPIKey}" ];
32 description = "Stand-alone YouTube video player";
34 Watch YouTube videos in a new way: you type a keyword, Minitube gives
35 you an endless video stream. Minitube is not about cloning the YouTube
36 website, it aims to create a new TV-like experience.
38 homepage = "https://flavio.tordini.org/minitube";
39 license = licenses.gpl3Plus;
40 platforms = platforms.linux;
42 mainProgram = "minitube";