summary refs log tree commit diff
path: root/pkgs/applications/video
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2015-02-02 20:24:27 +0300
committerNikolay Amiantov <ab@fmap.me>2015-02-03 14:27:43 +0300
commit9b631cd0f8c623cce84fbd6bd268f630d382e048 (patch)
tree25fdb2eeed6d76cfb522d6342f2b26c050fd0d03 /pkgs/applications/video
parentb7ecd5e72920bafcb79d759d925fd120cece6558 (diff)
downloadnixlib-9b631cd0f8c623cce84fbd6bd268f630d382e048.tar
nixlib-9b631cd0f8c623cce84fbd6bd268f630d382e048.tar.gz
nixlib-9b631cd0f8c623cce84fbd6bd268f630d382e048.tar.bz2
nixlib-9b631cd0f8c623cce84fbd6bd268f630d382e048.tar.lz
nixlib-9b631cd0f8c623cce84fbd6bd268f630d382e048.tar.xz
nixlib-9b631cd0f8c623cce84fbd6bd268f630d382e048.tar.zst
nixlib-9b631cd0f8c623cce84fbd6bd268f630d382e048.zip
bomi: rename from cmplayer and update
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r--pkgs/applications/video/bomi/default.nix (renamed from pkgs/applications/video/cmplayer/default.nix)40
-rw-r--r--pkgs/applications/video/cmplayer/fix-gcc48.patch22
2 files changed, 26 insertions, 36 deletions
diff --git a/pkgs/applications/video/cmplayer/default.nix b/pkgs/applications/video/bomi/default.nix
index 3fa38646d9df..521f50432ff1 100644
--- a/pkgs/applications/video/cmplayer/default.nix
+++ b/pkgs/applications/video/bomi/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, fetchpatch, pkgconfig, python2, perl
+{ stdenv, fetchurl, fetchFromGitHub, pkgconfig, perl, python3
 , libX11, libxcb, qt5, mesa
 , ffmpeg
 , libchardet
@@ -22,17 +22,25 @@ assert portaudioSupport -> portaudio != null;
 assert pulseSupport -> pulseaudio != null;
 assert cddaSupport -> libcdda != null;
 
+let
+  waf = fetchurl {
+    url = http://ftp.waf.io/pub/release/waf-1.8.4;
+    sha256 = "1a7skwgpl91adhcwlmdr76xzdpidh91hvcmj34zz6548bpx3a87h";
+  };
+
+in
+
 stdenv.mkDerivation rec {
-  name = "cmplayer-${version}";
-  version = "0.8.16";
+  name = "bomi-${version}";
+  version = "0.9.0";
 
-  src = fetchurl {
-    url = "https://github.com/xylosper/cmplayer/releases/download/v${version}/${name}-source.tar.gz";
-    sha256 = "1yppp0jbq3mwa7vq4sjmm2lsqnfcv4n7cjap50gc2bavq7qynr85";
+  src = fetchFromGitHub {
+    owner = "xylosper";
+    repo = "bomi";
+    rev = "v${version}";
+    sha256 = "12xyz40kl03h1m8g7d7s0wf74l2c70v6bd1drhww7ky48hxi0z14";
   };
 
-  patches = [ ./fix-gcc48.patch ];
-
   buildInputs = with stdenv.lib;
                 [ libX11 libxcb qt5 mesa
                   ffmpeg
@@ -55,8 +63,14 @@ stdenv.mkDerivation rec {
                 ;
 
   preConfigure = ''
-    patchShebangs ./configure
-    patchShebangs src/mpv/waf
+    patchShebangs configure
+    # src/mpv/waf build-mpv; do
+  '';
+
+  preBuild = ''
+    patchShebangs build-mpv
+    install -m755 ${waf} src/mpv/waf
+    sed -i '1 s,.*,#!${python3.interpreter},' src/mpv/waf
   '';
 
   configureFlags = with stdenv.lib;
@@ -67,15 +81,13 @@ stdenv.mkDerivation rec {
                    ++ optional cddaSupport "--enable-cdda"
                    ;
 
-  preBuild = "patchShebangs ./build-mpv";
-
-  nativeBuildInputs = [ pkgconfig python2 perl ];
+  nativeBuildInputs = [ pkgconfig perl ];
 
   enableParallelBuilding = true;
 
   meta = with stdenv.lib; {
     description = "Powerful and easy-to-use multimedia player";
-    homepage = http://cmplayer.github.io;
+    homepage = https://bomi-player.github.io/;
     license = licenses.gpl2Plus;
     maintainers = [ maintainers.abbradar ];
     platforms = platforms.linux;
diff --git a/pkgs/applications/video/cmplayer/fix-gcc48.patch b/pkgs/applications/video/cmplayer/fix-gcc48.patch
deleted file mode 100644
index 134acf89569e..000000000000
--- a/pkgs/applications/video/cmplayer/fix-gcc48.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-From f6de1c7537dc3a0b4c9d69a63653c9bb4af26948 Mon Sep 17 00:00:00 2001
-From: xylosper <darklin20@gmail.com>
-Date: Wed, 2 Jul 2014 11:57:05 +0900
-Subject: [PATCH] add a space between user defined literal operator
-
----
- src/cmplayer/stdafx.hpp | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/cmplayer/stdafx.hpp b/src/cmplayer/stdafx.hpp
-index 5f7d49c..c724f08 100644
---- a/src/cmplayer/stdafx.hpp
-+++ b/src/cmplayer/stdafx.hpp
-@@ -52,7 +52,7 @@ SIA operator "" _q(const char16_t *str, size_t len) -> QString
- SIA operator "" _a(const char *str, size_t len) -> QLatin1String
- { return QLatin1String(str, len); }
- 
--SIA operator ""_b(const char *str, size_t len) -> QByteArray
-+SIA operator "" _b(const char *str, size_t len) -> QByteArray
- { return QByteArray::fromRawData(str, len); }
- 
- SIA operator "" _8(const char *str, size_t len) -> QString