@@ -1,44 +1,65 @@
1−{ stdenv, fetchurl, desktop_file_utils, enchant, gnome, gstreamer, gstreamermm,
2− gst_plugins_base, gst_plugins_good, intltool, hicolor_icon_theme,
3− libsigcxx, libxmlxx, makeWrapper, xdg_utils, pkgconfig } :
1+{ stdenv, fetchurl, pkgconfig, autoconf, automake114x, intltool,
2+ desktop_file_utils, enchant, gnome3, gst_all_1, hicolor_icon_theme,
3+ libsigcxx, libxmlxx, xdg_utils, isocodes, wrapGAppsHook } :
44
55let
6− ver_maj = "0.41";
7− ver_min = "0";
6+ ver_maj = "0.52";
7+ ver_min = "1";
88in
99
1010stdenv.mkDerivation rec {
1111 name = "subtitle-editor-${ver_maj}.${ver_min}";
1212
13− buildInputs = [
14− desktop_file_utils enchant gnome.gtk gnome.gtkmm gstreamer gstreamermm
15− gst_plugins_base gst_plugins_good intltool hicolor_icon_theme libsigcxx libxmlxx
16− makeWrapper xdg_utils pkgconfig
17− ];
18−
1913 src = fetchurl {
2014 url = "http://download.gna.org/subtitleeditor/${ver_maj}/subtitleeditor-${ver_maj}.${ver_min}.tar.gz";
21− md5 = "3c21ccd8296001dcb1a02c62396db1b6";
15+ sha256 = "1m8j2i27kjaycvp09b0knp9in61jd2dj852hrx5hvkrby70mygjv";
2216 };
2317
18+ nativeBuildInputs = [
19+ autoconf automake114x pkgconfig intltool wrapGAppsHook
20+ ];
21+
22+ buildInputs = [
23+ desktop_file_utils
24+ enchant
25+ gnome3.gtk
26+ gnome3.gtkmm
27+ gst_all_1.gstreamer
28+ gst_all_1.gstreamermm
29+ gst_all_1.gst-plugins-base
30+ gst_all_1.gst-plugins-good
31+ hicolor_icon_theme
32+ libsigcxx
33+ libxmlxx
34+ xdg_utils
35+ isocodes
36+ ];
37+
38+ NIX_CFLAGS_COMPILE = "-std=c++11 -DDEBUG";
39+
40+ enableParallelBuilding = true;
41+
2442 doCheck = true;
2543
26− postInstall = ''
27− wrapProgram "$out/bin/subtitleeditor" --prefix \
28− GST_PLUGIN_SYSTEM_PATH ":" "$GST_PLUGIN_SYSTEM_PATH" \
44+ patches = [ ./subtitleeditor-0.52.1-build-fix.patch ];
45+
46+ preConfigure = ''
47+ # ansi overrides -std, see src_configure
48+ sed 's/\(CXXFLAGS\) -ansi/\1/' -i configure.ac configure
2949 '';
3050
51+ configureFlags = [ "--disable-debug" ];
3152
3253 meta = {
33− description = "GTK+2 application to edit video subtitles";
54+ description = "GTK+3 application to edit video subtitles";
3455 longDescription = ''
35− Subtitle Editor is a GTK+2 tool to edit subtitles for GNU/Linux/*BSD. It can be
36− used for new subtitles or as a tool to transform, edit, correct and refine
37− existing subtitle. This program also shows sound waves, which makes it easier
38− to synchronise subtitles to voices.
56+ Subtitle Editor is a GTK+3 tool to edit subtitles for GNU/Linux/*BSD. It
57+ can be used for new subtitles or as a tool to transform, edit, correct
58+ and refine existing subtitle. This program also shows sound waves, which
59+ makes it easier to synchronise subtitles to voices.
3960 '';
4061 homepage = http://home.gna.org/subtitleeditor;
41− license = stdenv.lib.licenses.gpl3;
62+ license = stdenv.lib.licenses.gpl3Plus;
4263 maintainers = [ stdenv.lib.maintainers.plcplc ];
4364 platforms = stdenv.lib.platforms.linux;
4465 };