git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #4471 from vbgl/smplayer

Updates SMPlayer to 14.9.0 and adds SMTube

commit49f03ff5e1d13797dabfe1b153a8cabfe9d4a855 authorAristid Breitkreuz <aristidb@gmail.com> dateSat 11 Oct 2014, 13:18 (12 years ago) parent23be46b8280d65
4 files changed+40−2
pkgs/applications/video/smplayer/basegui.cpp.patch+11 pkgs/applications/video/smplayer/default.nix+4−2 pkgs/applications/video/smtube/default.nix+23 pkgs/top-level/all-packages.nix+2
pkgs/applications/video/smplayer/basegui.cpp.patchnew file+11
@@ -0,0 +1,11 @@
1+--- a/src/basegui.cpp 2014-08-20 01:04:51.000000000 +0100
2++++ b/src/basegui.cpp 2014-10-11 10:25:57.561983556 +0100
3+@@ -5235,7 +5235,7 @@
4+ #ifdef YOUTUBE_SUPPORT
5+ void BaseGui::showTubeBrowser() {
6+ qDebug("BaseGui::showTubeBrowser");
7+- QString exec = Paths::appPath() + "/smtube";
8++ QString exec = "smtube";
9+ qDebug("BaseGui::showTubeBrowser: '%s'", exec.toUtf8().constData());
10+ if (!QProcess::startDetached(exec, QStringList())) {
11+ QMessageBox::warning(this, "SMPlayer",
pkgs/applications/video/smplayer/default.nix+4−2
@@ -1,13 +1,15 @@
11{ stdenv, fetchurl, qt4 }:
22
33stdenv.mkDerivation rec {
4− name = "smplayer-14.3.0";
4+ name = "smplayer-14.9.0";
55
66 src = fetchurl {
77 url = "mirror://sourceforge/smplayer/${name}.tar.bz2";
8− sha256 = "9b8db20043d1528ee5c6054526779e88a172d2c757429bd7095c794d65ecbc18";
8+ sha256 = "04yzgmdj9hm9v7ln49zm2aa1r9mm9q12pym4bvfww7yzsvnx96j2";
99 };
1010
11+ patches = [ ./basegui.cpp.patch ];
12+
1113 buildInputs = [ qt4 ];
1214
1315 preConfigure = ''
pkgs/applications/video/smtube/default.nixnew file+23
@@ -0,0 +1,23 @@
1+{stdenv, fetchurl, qt4}:
2+
3+stdenv.mkDerivation {
4+ name = "smtube-14.8.0";
5+ src = fetchurl {
6+ url = mirror://sourceforge/smplayer/smtube-14.8.0.tar.bz2;
7+ sha256 = "0h0kw4dvdj9sbxp0p6bdib9y8i7854f45lsmrdkykzk6rmgrf1cw";
8+ };
9+
10+ buildInputs = [qt4];
11+
12+ preConfigure = ''
13+ makeFlags="PREFIX=$out"
14+ '';
15+
16+ meta = with stdenv.lib; {
17+ description = "Play and download Youtube videos";
18+ homepage = http://smplayer.sourceforge.net/smtube.php;
19+ license = licenses.gpl2Plus;
20+ maintainers = with maintainers; [ vbgl ];
21+ platforms = platforms.linux;
22+ };
23+}
pkgs/top-level/all-packages.nix+2
@@ -9871,6 +9871,8 @@ let
98719871
98729872 smplayer = callPackage ../applications/video/smplayer { };
98739873
9874+ smtube = callPackage ../applications/video/smtube {};
9875+
98749876 sup = with rubyLibs; callPackage ../applications/networking/mailreaders/sup {
98759877 ruby = ruby_1_9_3.override {
98769878 cursesSupport = true;