1{
2 lib,
3 mkDerivation,
4 fetchurl,
5 qmake,
6 qtscript,
7 qtwebkit,
8}:
9
10mkDerivation rec {
11 version = "21.10.0";
12 pname = "smtube";
13
14 src = fetchurl {
15 url = "mirror://sourceforge/smtube/SMTube/${version}/${pname}-${version}.tar.bz2";
16 sha256 = "sha256-ZQIUAi/YC+zsYHVhlprZ5K6NGvT6LojmdQ1Z+WCg1lU=";
17 };
18
19 makeFlags = [
20 "PREFIX=$(out)"
21 ];
22
23 dontUseQmakeConfigure = true;
24
25 nativeBuildInputs = [ qmake ];
26 buildInputs = [
27 qtscript
28 qtwebkit
29 ];
30
31 meta = with lib; {
32 description = "Play and download Youtube videos";
33 homepage = "http://smplayer.sourceforge.net/smtube.php";
34 license = licenses.gpl2Plus;
35 maintainers = with maintainers; [ vbgl ];
36 platforms = platforms.linux;
37 };
38}