summary refs log tree commit diff
path: root/pkgs/applications/video/aegisub
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@gmail.com>2013-12-22 18:37:41 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2013-12-25 22:24:19 +0100
commit378f962c0ef006a19ba1d7f7e3fd67bba8be0960 (patch)
tree89c48ec2ac481e070d3e8b815221374687d4f33d /pkgs/applications/video/aegisub
parente87515e5198a9b225778caea4c7b88fe27c8fabb (diff)
downloadnixlib-378f962c0ef006a19ba1d7f7e3fd67bba8be0960.tar
nixlib-378f962c0ef006a19ba1d7f7e3fd67bba8be0960.tar.gz
nixlib-378f962c0ef006a19ba1d7f7e3fd67bba8be0960.tar.bz2
nixlib-378f962c0ef006a19ba1d7f7e3fd67bba8be0960.tar.lz
nixlib-378f962c0ef006a19ba1d7f7e3fd67bba8be0960.tar.xz
nixlib-378f962c0ef006a19ba1d7f7e3fd67bba8be0960.tar.zst
nixlib-378f962c0ef006a19ba1d7f7e3fd67bba8be0960.zip
Aegisub: New Package
Adding Aegisub: an advanced movie subtitle editor
Diffstat (limited to 'pkgs/applications/video/aegisub')
-rw-r--r--pkgs/applications/video/aegisub/default.nix59
1 files changed, 59 insertions, 0 deletions
diff --git a/pkgs/applications/video/aegisub/default.nix b/pkgs/applications/video/aegisub/default.nix
new file mode 100644
index 000000000000..cbbb23b04a05
--- /dev/null
+++ b/pkgs/applications/video/aegisub/default.nix
@@ -0,0 +1,59 @@
+{ stdenv, fetchurl
+, libX11, gettext, wxGTK
+, libiconv, fontconfig, freetype
+, mesa
+, libass, fftw, ffms
+, ffmpeg, pkgconfig, zlib # Undocumented (?) dependencies
+, spellChecking ? true, hunspell ? null
+, automationSupport ? true, lua ? null 
+, openalSupport ? false, openal ? null
+, alsaSupport ? true, alsaLib ? null
+, pulseaudioSupport ? true, pulseaudio ? null
+, portaudioSupport ? false, portaudio ? null
+}:
+
+assert spellChecking -> (hunspell != null);
+assert automationSupport -> (lua != null);
+assert openalSupport -> (openal != null);
+assert alsaSupport -> (alsaLib != null);
+assert pulseaudioSupport -> (pulseaudio != null);
+assert portaudioSupport -> (portaudio != null);
+
+stdenv.mkDerivation rec {
+  name = "aegisub-${version}";
+  version = "3.0.4";
+
+  src = fetchurl {
+    url = "http://ftp.aegisub.org/pub/releases/${name}.tar.xz";
+    md5 = "0f22d63ed4c502f3801795fa623a4f41";
+  };
+
+  buildInputs = with stdenv.lib;
+  [ libX11 gettext wxGTK libiconv fontconfig freetype mesa libass fftw ffms ffmpeg pkgconfig zlib ]
+  ++ optional spellChecking hunspell
+  ++ optional automationSupport lua
+  ++ optional openalSupport openal
+  ++ optional alsaSupport alsaLib
+  ++ optional pulseaudioSupport pulseaudio
+  ++ optional portaudioSupport portaudio
+  ;
+
+  NIX_LDFLAGS = "-liconv -lavutil -lavformat -lavcodec -lswscale -lz -lm";
+  
+  preConfigure = "cd aegisub"; 
+  
+  postInstall = "ln -s $out/bin/aegisub-3.0 $out/bin/aegisub";
+  
+  meta = {
+    description = "An advanced subtitle editor";
+    longDescription = ''
+      Aegisub is a free, cross-platform open source tool for creating and
+      modifying subtitles. Aegisub makes it quick and easy to time subtitles to
+      audio, and features many powerful tools for styling them, including a
+      built-in real-time video preview.
+    '';
+    homepage = http://www.aegisub.org/;
+    license = "BSD"; # The Aegisub sources are itself BSD/ISC, but they are linked against GPL'd softwares
+    platforms = stdenv.lib.platforms.linux;
+  };
+}