summary refs log tree commit diff
path: root/pkgs/applications/video/avxsynth
diff options
context:
space:
mode:
authorcodyopel <codyopel@gmail.com>2015-05-09 18:13:52 -0400
committercodyopel <codyopel@gmail.com>2015-05-09 18:13:52 -0400
commitb807d8daebf240a101b6b906161d9ae29fef6b14 (patch)
treedd586427025ffcc815520a510b41210cae23c099 /pkgs/applications/video/avxsynth
parente50afd12b7647921a18336add9fd81e8798b3d6d (diff)
downloadnixpkgs-b807d8daebf240a101b6b906161d9ae29fef6b14.tar
nixpkgs-b807d8daebf240a101b6b906161d9ae29fef6b14.tar.gz
nixpkgs-b807d8daebf240a101b6b906161d9ae29fef6b14.tar.bz2
nixpkgs-b807d8daebf240a101b6b906161d9ae29fef6b14.tar.lz
nixpkgs-b807d8daebf240a101b6b906161d9ae29fef6b14.tar.xz
nixpkgs-b807d8daebf240a101b6b906161d9ae29fef6b14.tar.zst
nixpkgs-b807d8daebf240a101b6b906161d9ae29fef6b14.zip
avxsynth: refactor & 2013-05-10 -> 2015-04-07
Diffstat (limited to 'pkgs/applications/video/avxsynth')
-rw-r--r--pkgs/applications/video/avxsynth/default.nix50
1 files changed, 33 insertions, 17 deletions
diff --git a/pkgs/applications/video/avxsynth/default.nix b/pkgs/applications/video/avxsynth/default.nix
index a9a2ec46397..d8ec715a38c 100644
--- a/pkgs/applications/video/avxsynth/default.nix
+++ b/pkgs/applications/video/avxsynth/default.nix
@@ -1,26 +1,42 @@
-{ stdenv, fetchurl, ffmpeg, autoconf, automake, libtool, pkgconfig, log4cpp
-, pango, cairo, python, libjpeg, ffms
-, enableQt ? true, qt4}:
+{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
+, cairo, ffmpeg, ffms, libjpeg, log4cpp, pango
+, avxeditSupport ? false, qt4 ? null
+}:
+
+let
+  inherit (stdenv.lib) enableFeature optional;
+in
 
 stdenv.mkDerivation rec {
-  name = "avxsynth-4.0-e153e672bf";
+  name = "avxsynth-${version}";
+  version = "2015-04-07";
 
-  src = fetchurl {
-    url = https://github.com/avxsynth/avxsynth/tarball/e153e672bf;
-    name = "${name}.tar.gz";
-    sha256 = "16l2ld8k1nfsms6jd9d9r4l247xxbncsak66w87icr20yzyhs14s";
+  src = fetchFromGitHub {
+    owner = "avxsynth";
+    repo = "avxsynth";
+    rev = "80dcb7ec8d314bc158130c92803308aa8e5e9242";
+    sha256 = "0kckggvgv68b0qjdi7ms8vi97b46dl63n60qr96d2w67lf2nk87z";
   };
 
-  buildInputs = [ ffmpeg autoconf automake libtool pkgconfig log4cpp pango cairo python
-    libjpeg ffms ]
-    ++ stdenv.lib.optional enableQt qt4;
+  configureFlags = [
+    "--enable-autocrop"
+    "--enable-framecapture"
+    "--enable-subtitle"
+    "--enable-ffms2"
+    (enableFeature avxeditSupport "avxedit")
+    "--with-jpeg=${libjpeg}/lib"
+  ];
+
+  nativeBuildInputs = [ autoreconfHook pkgconfig ];
 
-  preConfigure = "autoreconf -vfi";
+  buildInputs = [ cairo ffmpeg ffms libjpeg log4cpp pango ]
+    ++ optional avxeditSupport qt4;
 
-  meta = {
-    homepage = https://github.com/avxsynth/avxsynth/wiki;
-    license = stdenv.lib.licenses.gpl2Plus;
-    maintainers = with stdenv.lib.maintainers; [viric];
-    platforms = with stdenv.lib.platforms; linux;
+  meta = with stdenv.lib; {
+    description = "A script system that allows advanced non-linear editing";
+    homepage = https://github.com/avxsynth/avxsynth;
+    license = licenses.gpl2Plus;
+    maintainers = with maintainers; [ codyopel viric ];
+    platforms = platforms.linux;
   };
 }