avxsynth: refactor & 2013-05-10 -> 2015-04-07

authored by codyopel and committed by Domen Kožar 6c0b0a02 d57a93f0

+33 -17
+33 -17
pkgs/applications/video/avxsynth/default.nix
··· 1 - { stdenv, fetchurl, ffmpeg, autoconf, automake, libtool, pkgconfig, log4cpp 2 - , pango, cairo, python, libjpeg, ffms 3 - , enableQt ? true, qt4}: 1 + { stdenv, fetchFromGitHub, autoreconfHook, pkgconfig 2 + , cairo, ffmpeg, ffms, libjpeg, log4cpp, pango 3 + , avxeditSupport ? false, qt4 ? null 4 + }: 5 + 6 + let 7 + inherit (stdenv.lib) enableFeature optional; 8 + in 4 9 5 10 stdenv.mkDerivation rec { 6 - name = "avxsynth-4.0-e153e672bf"; 11 + name = "avxsynth-${version}"; 12 + version = "2015-04-07"; 7 13 8 - src = fetchurl { 9 - url = https://github.com/avxsynth/avxsynth/tarball/e153e672bf; 10 - name = "${name}.tar.gz"; 11 - sha256 = "16l2ld8k1nfsms6jd9d9r4l247xxbncsak66w87icr20yzyhs14s"; 14 + src = fetchFromGitHub { 15 + owner = "avxsynth"; 16 + repo = "avxsynth"; 17 + rev = "80dcb7ec8d314bc158130c92803308aa8e5e9242"; 18 + sha256 = "0kckggvgv68b0qjdi7ms8vi97b46dl63n60qr96d2w67lf2nk87z"; 12 19 }; 13 20 14 - buildInputs = [ ffmpeg autoconf automake libtool pkgconfig log4cpp pango cairo python 15 - libjpeg ffms ] 16 - ++ stdenv.lib.optional enableQt qt4; 21 + configureFlags = [ 22 + "--enable-autocrop" 23 + "--enable-framecapture" 24 + "--enable-subtitle" 25 + "--enable-ffms2" 26 + (enableFeature avxeditSupport "avxedit") 27 + "--with-jpeg=${libjpeg}/lib" 28 + ]; 17 29 18 - preConfigure = "autoreconf -vfi"; 30 + nativeBuildInputs = [ autoreconfHook pkgconfig ]; 31 + 32 + buildInputs = [ cairo ffmpeg ffms libjpeg log4cpp pango ] 33 + ++ optional avxeditSupport qt4; 19 34 20 - meta = { 21 - homepage = https://github.com/avxsynth/avxsynth/wiki; 22 - license = stdenv.lib.licenses.gpl2Plus; 23 - maintainers = with stdenv.lib.maintainers; [viric]; 24 - platforms = with stdenv.lib.platforms; linux; 35 + meta = with stdenv.lib; { 36 + description = "A script system that allows advanced non-linear editing"; 37 + homepage = https://github.com/avxsynth/avxsynth; 38 + license = licenses.gpl2Plus; 39 + maintainers = with maintainers; [ codyopel viric ]; 40 + platforms = platforms.linux; 25 41 }; 26 42 }