nixpkgs/pkgs/applications/video/subtitleeditor/default.nix

68 lines
1.7 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, intltool, file,
desktop-file-utils, enchant, gtk3, gtkmm3, gst_all_1, hicolor-icon-theme,
2021-02-01 08:05:09 +00:00
libsigcxx, libxmlxx, xdg-utils, isocodes, wrapGAppsHook
2016-09-20 13:18:16 +00:00
}:
let
2018-01-13 00:14:12 +00:00
version = "0.54.0";
in
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
2019-08-13 21:52:01 +00:00
pname = "subtitleeditor";
inherit version;
2018-01-13 00:14:12 +00:00
src = fetchFromGitHub {
owner = "kitone";
repo = "subtitleeditor";
rev = version;
sha256 = "0vxcscc9m6gymgj173ahk2g9hlk9588z5fdaavmkpyriqdlhwm11";
};
2016-03-18 12:14:46 +00:00
nativeBuildInputs = [
2018-01-13 00:14:12 +00:00
autoreconfHook
pkg-config
2016-09-20 13:18:16 +00:00
intltool
file
wrapGAppsHook
2016-03-18 12:14:46 +00:00
];
buildInputs = [
desktop-file-utils
2016-03-18 12:14:46 +00:00
enchant
gtk3
2019-03-23 04:50:12 +00:00
gtkmm3
2016-03-18 12:14:46 +00:00
gst_all_1.gstreamer
gst_all_1.gstreamermm
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-ugly
gst_all_1.gst-libav
hicolor-icon-theme
2016-03-18 12:14:46 +00:00
libsigcxx
libxmlxx
2021-02-01 08:05:09 +00:00
xdg-utils
2016-03-18 12:14:46 +00:00
isocodes
];
enableParallelBuilding = true;
2016-09-20 13:18:16 +00:00
preConfigure = "substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file";
2016-03-18 12:14:46 +00:00
configureFlags = [ "--disable-debug" ];
meta = {
description = "GTK 3 application to edit video subtitles";
longDescription = ''
Subtitle Editor is a GTK 3 tool to edit subtitles for GNU/Linux/*BSD. It
2016-03-18 12:14:46 +00:00
can be used for new subtitles or as a tool to transform, edit, correct
and refine existing subtitle. This program also shows sound waves, which
makes it easier to synchronise subtitles to voices.
'';
homepage = "http://kitone.github.io/subtitleeditor/";
2021-01-15 05:42:41 +00:00
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.plcplc ];
};
}