Merge pull request #215877 from paveloom/subtitleedit


authored by Sandro and committed by GitHub b2c3a4dd b7848ac7

+104
+6
maintainers/maintainer-list.nix
··· 11317 11317 githubId = 15645854; 11318 11318 name = "Brad Christensen"; 11319 11319 }; 11320 + paveloom = { 11321 + email = "paveloom@riseup.net"; 11322 + github = "paveloom"; 11323 + githubId = 49961859; 11324 + name = "Pavel Sobolev"; 11325 + }; 11320 11326 payas = { 11321 11327 email = "relekarpayas@gmail.com"; 11322 11328 github = "bhankas";
+96
pkgs/applications/video/subtitleedit/default.nix
··· 1 + { lib 2 + , stdenv 3 + , copyDesktopItems 4 + , makeDesktopItem 5 + , makeWrapper 6 + , fetchzip 7 + , ffmpeg 8 + , gtk2 9 + , hunspell 10 + , icoutils 11 + , mono 12 + , mpv 13 + , tesseract4 14 + }: 15 + 16 + stdenv.mkDerivation rec { 17 + pname = "subtitleedit"; 18 + version = "3.6.11"; 19 + 20 + src = fetchzip { 21 + url = "https://github.com/SubtitleEdit/subtitleedit/releases/download/${version}/SE${lib.replaceStrings [ "." ] [ "" ] version}.zip"; 22 + sha256 = "00w9jx704in3hbnzp0i7bhqkhbl0h5mahc5izwa980b67w08dc26"; 23 + stripRoot = false; 24 + }; 25 + 26 + preUnpack = '' 27 + rm -rf source 28 + ''; 29 + 30 + nativeBuildInputs = [ 31 + copyDesktopItems 32 + icoutils 33 + makeWrapper 34 + ]; 35 + 36 + runtimeLibs = lib.makeLibraryPath [ 37 + gtk2 38 + hunspell 39 + mpv 40 + tesseract4 41 + ]; 42 + 43 + runtimeBins = lib.makeBinPath [ 44 + ffmpeg 45 + hunspell 46 + tesseract4 47 + ]; 48 + 49 + installPhase = '' 50 + runHook preInstall 51 + 52 + mkdir -p $out/bin 53 + mkdir -p $out/share/icons/hicolor/{16x16,32x32,48x48,256x256}/apps 54 + 55 + cp -r * $out/bin/ 56 + ln -s ${hunspell.out}/lib/libhunspell*.so $out/bin/libhunspell.so 57 + makeWrapper "${mono}/bin/mono" $out/bin/subtitleedit \ 58 + --add-flags "$out/bin/SubtitleEdit.exe" \ 59 + --prefix LD_LIBRARY_PATH : ${runtimeLibs} \ 60 + --prefix PATH : ${runtimeBins} 61 + 62 + wrestool -x -t 14 SubtitleEdit.exe > subtitleedit.ico 63 + icotool -x -i 3 -o $out/share/icons/hicolor/16x16/apps/subtitleedit.png subtitleedit.ico 64 + icotool -x -i 6 -o $out/share/icons/hicolor/32x32/apps/subtitleedit.png subtitleedit.ico 65 + icotool -x -i 9 -o $out/share/icons/hicolor/48x48/apps/subtitleedit.png subtitleedit.ico 66 + icotool -x -i 10 -o $out/share/icons/hicolor/256x256/apps/subtitleedit.png subtitleedit.ico 67 + 68 + runHook postInstall 69 + ''; 70 + 71 + desktopItems = [ 72 + (makeDesktopItem { 73 + name = pname; 74 + desktopName = "Subtitle Edit"; 75 + exec = "subtitleedit"; 76 + icon = "subtitleedit"; 77 + comment = meta.description; 78 + categories = [ "Video" ]; 79 + }) 80 + ]; 81 + 82 + meta = with lib; { 83 + description = "A subtitle editor"; 84 + homepage = "https://nikse.dk/subtitleedit/"; 85 + license = licenses.gpl3Plus; 86 + longDescription = '' 87 + With Subtitle Edit you can easily adjust a subtitle if it is out of sync with 88 + the video in several different ways. You can also use it for making 89 + new subtitles from scratch (using the time-line /waveform/spectrogram) 90 + or for translating subtitles. 91 + ''; 92 + maintainers = with maintainers; [ paveloom ]; 93 + platforms = platforms.all; 94 + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 95 + }; 96 + }
+2
pkgs/top-level/all-packages.nix
··· 23397 23397 23398 23398 subdl = callPackage ../applications/video/subdl { }; 23399 23399 23400 + subtitleedit = callPackage ../applications/video/subtitleedit { }; 23401 + 23400 23402 subtitleeditor = callPackage ../applications/video/subtitleeditor { }; 23401 23403 23402 23404 suil = darwin.apple_sdk_11_0.callPackage ../development/libraries/audio/suil { };