2013-12-22 18:37:41 +01:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, libX11, gettext, wxGTK
|
|
|
|
, libiconv, fontconfig, freetype
|
|
|
|
, mesa
|
|
|
|
, libass, fftw, ffms
|
|
|
|
, ffmpeg, pkgconfig, zlib # Undocumented (?) dependencies
|
|
|
|
, spellChecking ? 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
|
|
|
|
, 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}";
|
2014-05-05 03:11:15 +02:00
|
|
|
version = "3.1.3";
|
2013-12-22 18:37:41 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ftp.aegisub.org/pub/releases/${name}.tar.xz";
|
2014-05-05 03:11:15 +02:00
|
|
|
sha256 = "0n2y5cggayr8246p2cvrz0ajlhhvmzcgsp7nljnm21jypk15pspg";
|
2013-12-22 18:37:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2014-03-22 10:01:42 +01:00
|
|
|
|
|
|
|
preConfigure = "cd aegisub";
|
|
|
|
|
2013-12-22 18:37:41 +01:00
|
|
|
postInstall = "ln -s $out/bin/aegisub-3.0 $out/bin/aegisub";
|
2014-03-22 10:01:42 +01:00
|
|
|
|
2013-12-22 18:37:41 +01:00
|
|
|
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/;
|
2014-03-22 10:01:42 +01:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
|
|
|
# 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-03-22 10:01:42 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.AndersonTorres ];
|
2013-12-22 18:37:41 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-03-22 05:12:48 +01:00
|
|
|
|
2013-12-22 18:37:41 +01:00
|
|
|
};
|
|
|
|
}
|