about summary refs log tree commit diff
path: root/pkgs/applications/video
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-03-21 21:08:16 +0100
committerGitHub <noreply@github.com>2022-03-21 21:08:16 +0100
commit71ded63759e07fcbf3a9545a5c20941d856df747 (patch)
tree1eaa14c26e52284f2f518972aa67f5b399da517a /pkgs/applications/video
parent787d0593212b3e02aa064da03bd356773521d98a (diff)
parent52221374e5b4f8d2922090b0ff26e390d4016b0b (diff)
downloadnixlib-71ded63759e07fcbf3a9545a5c20941d856df747.tar
nixlib-71ded63759e07fcbf3a9545a5c20941d856df747.tar.gz
nixlib-71ded63759e07fcbf3a9545a5c20941d856df747.tar.bz2
nixlib-71ded63759e07fcbf3a9545a5c20941d856df747.tar.lz
nixlib-71ded63759e07fcbf3a9545a5c20941d856df747.tar.xz
nixlib-71ded63759e07fcbf3a9545a5c20941d856df747.tar.zst
nixlib-71ded63759e07fcbf3a9545a5c20941d856df747.zip
Merge pull request #162765 from Leixb/yuview
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r--pkgs/applications/video/yuview/default.nix45
-rw-r--r--pkgs/applications/video/yuview/disable_version_check.patch15
2 files changed, 60 insertions, 0 deletions
diff --git a/pkgs/applications/video/yuview/default.nix b/pkgs/applications/video/yuview/default.nix
new file mode 100644
index 000000000000..440782a8b70a
--- /dev/null
+++ b/pkgs/applications/video/yuview/default.nix
@@ -0,0 +1,45 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, qmake
+, wrapQtAppsHook
+}:
+
+stdenv.mkDerivation rec {
+  pname = "yuview";
+  version = "2.12.1";
+
+  src = fetchFromGitHub {
+    owner = "IENT";
+    repo = "YUView";
+    rev = "v${version}";
+    sha256 = "sha256-BQnlq6TBxGbwqn6lAZGBo4+2HeXdFYL33LKqKSXMvdY=";
+  };
+
+  nativeBuildInputs = [ qmake wrapQtAppsHook ];
+
+  patches = [ ./disable_version_check.patch ];
+
+  enableParallelBuilding = true;
+
+  meta = with lib; {
+    homepage = "https://ient.github.io/YUView";
+    description = "YUV Viewer and Analysis Tool";
+    longDescription = ''
+      YUView is a Qt based YUV player with an advanced analytic toolset for
+      Linux, Windows and Mac. At its core, YUView is a powerful YUV player that
+      can open and show almost any YUV format. With its simple interface it is
+      easy to navigate through sequences and inspect details and a side by side
+      and comparison view can help to spot differences between two sequences. A
+      sophisticated statistics renderer can overlay the video with supplemental
+      information. More features include playlists, support for visual tests and
+      presentations, support of compressed formats (through libde265 and
+      FFmpeg), support for raw RGB files as well as image files and image
+      sequences, and many more. Further information can be found in the YUV help
+      in the application itself or in our wiki.
+    '';
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ leixb ];
+    platforms = platforms.unix;
+  };
+}
diff --git a/pkgs/applications/video/yuview/disable_version_check.patch b/pkgs/applications/video/yuview/disable_version_check.patch
new file mode 100644
index 000000000000..c13cb9e9b5bd
--- /dev/null
+++ b/pkgs/applications/video/yuview/disable_version_check.patch
@@ -0,0 +1,15 @@
+diff --git a/YUViewLib/src/common/Typedef.h b/YUViewLib/src/common/Typedef.h
+--- a/YUViewLib/src/common/Typedef.h
++++ b/YUViewLib/src/common/Typedef.h
+@@ -212,12 +212,7 @@ private:
+ #define YUVIEW_VERSION "Unknown"
+ #endif
+ 
+-#ifndef YUVIEW_HASH
+ #define VERSION_CHECK 0
+-#define YUVIEW_HASH 0
+-#else
+-#define VERSION_CHECK 1
+-#endif
+ 
+ #define MAX_RECENT_FILES 10