nixpkgs/pkgs/applications/video/subtitleeditor/default.nix
Jan Tojnar eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
This was achieved using the following command:

    sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')

And then manually reverted the following changes:

- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27 02:23:22 +02:00

65 lines
1.7 KiB
Nix

{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, intltool, file,
desktop-file-utils, enchant, gtk3, gtkmm3, gst_all_1, hicolor-icon-theme,
libsigcxx, libxmlxx, xdg-utils, isocodes, wrapGAppsHook3
}:
stdenv.mkDerivation rec {
pname = "subtitleeditor";
version = "unstable-2019-11-30";
src = fetchFromGitHub {
owner = "kitone";
repo = "subtitleeditor";
rev = "4c215f4cff4483c44361a2f1d45efc4c6670787f";
sha256 = "sha256-1Q1nd3GJ6iDGQv4SM2S1ehVW6kPdbqTn8KTtTb0obiQ=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
intltool
file
wrapGAppsHook3
];
buildInputs = [
desktop-file-utils
enchant
gtk3
gtkmm3
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
libsigcxx
libxmlxx
xdg-utils
isocodes
];
enableParallelBuilding = true;
preConfigure = "substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file";
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
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/";
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.plcplc ];
mainProgram = "subtitleeditor";
};
}