2013-12-22 18:37:41 +01:00
|
|
|
{ stdenv, fetchurl
|
2014-11-03 12:11:43 +01:00
|
|
|
, libX11, wxGTK
|
2014-11-27 00:16:50 +01:00
|
|
|
, libiconv, fontconfig, freetype
|
2013-12-22 18:37:41 +01:00
|
|
|
, mesa
|
|
|
|
, libass, fftw, ffms
|
|
|
|
, ffmpeg, pkgconfig, zlib # Undocumented (?) dependencies
|
2014-05-06 03:56:41 +02:00
|
|
|
, icu, boost, intltool # New dependencies
|
2015-04-07 03:57:25 +02:00
|
|
|
, spellcheckSupport ? true, hunspell ? null
|
2014-03-22 10:01:42 +01:00
|
|
|
, automationSupport ? true, lua ? null
|
2013-12-22 18:37:41 +01:00
|
|
|
, openalSupport ? false, openal ? null
|
|
|
|
, alsaSupport ? true, alsaLib ? null
|
2015-05-27 21:42:15 +02:00
|
|
|
, pulseaudioSupport ? true, libpulseaudio ? null
|
2014-09-10 20:59:54 +02:00
|
|
|
, portaudioSupport ? false, portaudio ? null }:
|
2013-12-22 18:37:41 +01:00
|
|
|
|
2015-04-07 03:57:25 +02:00
|
|
|
assert spellcheckSupport -> (hunspell != null);
|
2013-12-22 18:37:41 +01:00
|
|
|
assert automationSupport -> (lua != null);
|
|
|
|
assert openalSupport -> (openal != null);
|
|
|
|
assert alsaSupport -> (alsaLib != null);
|
2015-05-27 21:42:15 +02:00
|
|
|
assert pulseaudioSupport -> (libpulseaudio != null);
|
2013-12-22 18:37:41 +01:00
|
|
|
assert portaudioSupport -> (portaudio != null);
|
|
|
|
|
2015-04-07 03:57:25 +02:00
|
|
|
with stdenv.lib;
|
2013-12-22 18:37:41 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "aegisub-${version}";
|
2015-04-07 03:57:25 +02:00
|
|
|
version = "3.2.2";
|
2013-12-22 18:37:41 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ftp.aegisub.org/pub/releases/${name}.tar.xz";
|
2015-04-07 03:57:25 +02:00
|
|
|
sha256 = "11b83qazc8h0iidyj1rprnnjdivj1lpphvpa08y53n42bfa36pn5";
|
2013-12-22 18:37:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = with stdenv.lib;
|
2014-11-03 12:11:43 +01:00
|
|
|
[ pkgconfig intltool libX11 wxGTK fontconfig freetype mesa
|
2014-11-27 00:16:50 +01:00
|
|
|
libass fftw ffms ffmpeg zlib icu boost boost.lib libiconv
|
2014-11-03 12:11:43 +01:00
|
|
|
]
|
2015-04-07 03:57:25 +02:00
|
|
|
++ optional spellcheckSupport hunspell
|
2014-11-03 12:11:43 +01:00
|
|
|
++ optional automationSupport lua
|
|
|
|
++ optional openalSupport openal
|
|
|
|
++ optional alsaSupport alsaLib
|
2015-05-27 21:42:15 +02:00
|
|
|
++ optional pulseaudioSupport libpulseaudio
|
2014-11-03 12:11:43 +01:00
|
|
|
++ optional portaudioSupport portaudio
|
|
|
|
;
|
2014-03-22 10:01:42 +01:00
|
|
|
|
2014-11-03 12:11:43 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-05-06 03:56:41 +02:00
|
|
|
postInstall = "ln -s $out/bin/aegisub-* $out/bin/aegisub";
|
2014-03-22 10:01:42 +01:00
|
|
|
|
2015-04-07 03:57:25 +02:00
|
|
|
meta = {
|
2013-12-22 18:37:41 +01:00
|
|
|
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/;
|
2014-05-06 03:56:41 +02:00
|
|
|
license = licenses.bsd3;
|
2014-03-22 10:01:42 +01:00
|
|
|
# The Aegisub sources are itself BSD/ISC,
|
2014-03-22 05:12:48 +01:00
|
|
|
# but they are linked against GPL'd softwares
|
|
|
|
# - so the resulting program will be GPL
|
2014-05-06 03:56:41 +02:00
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
2013-12-22 18:37:41 +01:00
|
|
|
};
|
|
|
|
}
|