add minitube: stand-alone Youtube video player

Close #8118.

authored by Tobias Geerinckx-Rice and committed by Vladimír Čunát cae83325 651e83ac

+45
+43
pkgs/applications/video/minitube/default.nix
···
··· 1 + { stdenv, fetchFromGitHub, makeWrapper, phonon, phonon_backend_vlc, qt4 2 + # "Free" API key generated by nckx <tobias.geerinckx.rice@gmail.com> 3 + , withAPIKey ? "AIzaSyBtFgbln3bu1swQC-naMxMtKh384D3xJZE" }: 4 + 5 + let version = "2.4"; in 6 + stdenv.mkDerivation { 7 + name = "minitube-${version}"; 8 + 9 + src = fetchFromGitHub { 10 + sha256 = "0mm8v2vpspwxh2fqaykb381v6r9apywc1b0x8jkcbp7s43w10lp5"; 11 + rev = version; 12 + repo = "minitube"; 13 + owner = "flaviotordini"; 14 + }; 15 + 16 + meta = with stdenv.lib; { 17 + inherit version; 18 + description = "Stand-alone YouTube video player"; 19 + longDescription = '' 20 + Watch YouTube videos in a new way: you type a keyword, Minitube gives 21 + you an endless video stream. Minitube is not about cloning the YouTube 22 + website, it aims to create a new TV-like experience. 23 + ''; 24 + homepage = http://flavio.tordini.org/minitube; 25 + license = licenses.gpl3Plus; 26 + platforms = with platforms; linux; 27 + maintainers = with maintainers; [ nckx ]; 28 + }; 29 + 30 + buildInputs = [ phonon phonon_backend_vlc qt4 ]; 31 + nativeBuildInputs = [ makeWrapper ]; 32 + 33 + configurePhase = '' 34 + qmake PREFIX=$out "DEFINES += APP_GOOGLE_API_KEY=${withAPIKey}" 35 + ''; 36 + 37 + enableParallelBuilding = true; 38 + 39 + postInstall = '' 40 + wrapProgram $out/bin/minitube \ 41 + --prefix QT_PLUGIN_PATH : "${phonon_backend_vlc}/lib/kde4/plugins" 42 + ''; 43 + }
+2
pkgs/top-level/all-packages.nix
··· 11732 11733 minidjvu = callPackage ../applications/graphics/minidjvu { }; 11734 11735 mimms = callPackage ../applications/audio/mimms {}; 11736 11737 mirage = callPackage ../applications/graphics/mirage {};
··· 11732 11733 minidjvu = callPackage ../applications/graphics/minidjvu { }; 11734 11735 + minitube = callPackage ../applications/video/minitube { }; 11736 + 11737 mimms = callPackage ../applications/audio/mimms {}; 11738 11739 mirage = callPackage ../applications/graphics/mirage {};