diff --git a/pkgs/applications/video/cmplayer/default.nix b/pkgs/applications/video/cmplayer/default.nix index 3acb66089f96..5016686cad78 100644 --- a/pkgs/applications/video/cmplayer/default.nix +++ b/pkgs/applications/video/cmplayer/default.nix @@ -31,11 +31,7 @@ stdenv.mkDerivation rec { sha256 = "1yppp0jbq3mwa7vq4sjmm2lsqnfcv4n7cjap50gc2bavq7qynr85"; }; - patches = [ (fetchpatch { - url = "https://github.com/xylosper/cmplayer/commit/f6de1c7537dc3a0b4c9d69a63653c9bb4af26948.patch"; - sha256 = "09ss9bm9z29nqzvdw6a1wv572fl64af1qv55h0wicr6vp0v491h9"; - }) - ]; + patches = [ ./fix-gcc48.patch ]; buildInputs = with stdenv.lib; [ libX11 libxcb qt5 mesa diff --git a/pkgs/applications/video/cmplayer/fix-gcc48.patch b/pkgs/applications/video/cmplayer/fix-gcc48.patch new file mode 100644 index 000000000000..134acf89569e --- /dev/null +++ b/pkgs/applications/video/cmplayer/fix-gcc48.patch @@ -0,0 +1,22 @@ +From f6de1c7537dc3a0b4c9d69a63653c9bb4af26948 Mon Sep 17 00:00:00 2001 +From: xylosper +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