about summary refs log tree commit diff
path: root/pkgs/tools/misc/oggvideotools
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2021-10-23 00:17:48 +0200
committerSandro Jäckel <sandro.jaeckel@gmail.com>2021-10-23 00:18:08 +0200
commit6fdc3e6a7c04865b59f7c3e28d4eb16818cb7da2 (patch)
treef5525205e6912a57ee1a36963be07f1b1b50b3d9 /pkgs/tools/misc/oggvideotools
parent2070d83f07e77278ddf8da3b90fc5c6f471df273 (diff)
oggvideotools: init at 0.9.1
Diffstat (limited to 'pkgs/tools/misc/oggvideotools')
-rw-r--r--pkgs/tools/misc/oggvideotools/default.nix26
-rw-r--r--pkgs/tools/misc/oggvideotools/fix-compile.patch10
2 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/tools/misc/oggvideotools/default.nix b/pkgs/tools/misc/oggvideotools/default.nix
new file mode 100644
index 0000000000000..2780354aa0e62
--- /dev/null
+++ b/pkgs/tools/misc/oggvideotools/default.nix
@@ -0,0 +1,26 @@
+{ lib, stdenv, fetchurl, cmake, pkg-config, boost, gd, libogg, libtheora, libvorbis }:
+
+stdenv.mkDerivation rec {
+  pname = "oggvideotools";
+  version = "0.9.1";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/oggvideotools/oggvideotools/oggvideotools-${version}/oggvideotools-${version}.tar.bz2";
+    sha256 = "sha256-2dv3iXt86phhIgnYC5EnRzyX1u5ssNzPwrOP4+jilSM=";
+  };
+
+  patches = [
+    ./fix-compile.patch
+  ];
+
+  nativeBuildInputs = [ cmake pkg-config ];
+
+  buildInputs = [ boost gd libogg libtheora libvorbis ];
+
+  meta = with lib; {
+    description = "Toolbox for manipulating and creating Ogg video files";
+    homepage = "http://www.streamnik.de/oggvideotools.html";
+    license = licenses.gpl2Only;
+    maintainers = with maintainers; [ SuperSandro2000 ];
+  };
+}
diff --git a/pkgs/tools/misc/oggvideotools/fix-compile.patch b/pkgs/tools/misc/oggvideotools/fix-compile.patch
new file mode 100644
index 0000000000000..65c3dd6a2351b
--- /dev/null
+++ b/pkgs/tools/misc/oggvideotools/fix-compile.patch
@@ -0,0 +1,10 @@
+--- oggvideotools-0.9.1/src/base/test/decoderTest.cpp	2016-09-05 10:35:14.000000000 +0200
++++ oggvideotools-0.9.1/src/base/test/decoderTest.cpp	2021-10-22 22:42:48.980473419 +0200
+@@ -5,6 +5,7 @@
+ #include "oggDecoder.h"
+ #include <vector>
+ #include <iostream>
++#include <cstring>
+ 
+ int main(int argc, char* argv[])
+ {