lol

minitube: 2.4 -> 2.9

Version 2.9 is based on QT5 (with a much better interface) and requires
additionally the dependencies `qtbase`, `qtdeclarative` and `qttools`.

Furthermore the `QT_PLUGIN_PATH` had to be altered, however the
`phonon-backend` contains versioned paths, so we provide the plugin path
that matches the QT version used to build this package.

See #33248

+10 -7
+9 -6
pkgs/applications/video/minitube/default.nix
··· 1 - { stdenv, fetchFromGitHub, makeWrapper, phonon, phonon-backend-vlc, qt4, qmake4Hook 1 + { stdenv, fetchFromGitHub, makeWrapper, phonon, phonon-backend-vlc, qtbase, qmake 2 + , qtdeclarative, qttools 3 + 2 4 # "Free" key generated by nckx <github@tobias.gr>. I no longer have a Google 3 5 # account. You'll need to generate (and please share :-) a new one if it breaks. 4 6 , withAPIKey ? "AIzaSyBtFgbln3bu1swQC-naMxMtKh384D3xJZE" }: 5 7 6 8 stdenv.mkDerivation rec { 7 9 name = "minitube-${version}"; 8 - version = "2.4"; 10 + version = "2.9"; 9 11 10 12 src = fetchFromGitHub { 11 - sha256 = "0mm8v2vpspwxh2fqaykb381v6r9apywc1b0x8jkcbp7s43w10lp5"; 13 + sha256 = "11zkmwqadlgrrghs3rxq0h0fllfnyd3g09d7gdd6vd9r1a1yz73f"; 12 14 rev = version; 13 15 repo = "minitube"; 14 16 owner = "flaviotordini"; 15 17 }; 16 18 17 - buildInputs = [ phonon phonon-backend-vlc qt4 ]; 18 - nativeBuildInputs = [ makeWrapper qmake4Hook ]; 19 + buildInputs = [ phonon phonon-backend-vlc qtbase qtdeclarative qttools ]; 20 + nativeBuildInputs = [ makeWrapper qmake ]; 19 21 20 22 qmakeFlags = [ "DEFINES+=APP_GOOGLE_API_KEY=${withAPIKey}" ]; 21 23 ··· 23 25 24 26 postInstall = '' 25 27 wrapProgram $out/bin/minitube \ 26 - --prefix QT_PLUGIN_PATH : "${phonon-backend-vlc}/lib/kde4/plugins" 28 + --prefix QT_PLUGIN_PATH : "${phonon-backend-vlc}/lib/qt-5.${stdenv.lib.versions.minor qtbase.version}/plugins" 27 29 ''; 28 30 29 31 meta = with stdenv.lib; { ··· 36 38 homepage = https://flavio.tordini.org/minitube; 37 39 license = licenses.gpl3Plus; 38 40 platforms = platforms.linux; 41 + maintainers = with maintainers; [ ma27 ]; 39 42 }; 40 43 }
+1 -1
pkgs/top-level/all-packages.nix
··· 16778 16778 inherit (darwin.apple_sdk.frameworks) vmnet; 16779 16779 }; 16780 16780 16781 - minitube = callPackage ../applications/video/minitube { }; 16781 + minitube = libsForQt5.callPackage ../applications/video/minitube { }; 16782 16782 16783 16783 mimms = callPackage ../applications/audio/mimms {}; 16784 16784