2023-08-04 22:07:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "srt-to-vtt-cl";
|
|
|
|
version = "unstable-2019-01-03";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nwoltman";
|
|
|
|
repo = pname;
|
|
|
|
rev = "ce3d0776906eb847c129d99a85077b5082f74724";
|
|
|
|
sha256 = "0qxysj08gjr6npyvg148llmwmjl2n9cyqjllfnf3gxb841dy370n";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2023-08-04 22:07:22 +00:00
|
|
|
./fix-validation.patch
|
|
|
|
./simplify-macOS-builds.patch
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2023-08-04 22:07:22 +00:00
|
|
|
cp bin/srt-vtt $out/bin
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Convert SRT files to VTT";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ericdallo ];
|
|
|
|
homepage = "https://github.com/nwoltman/srt-to-vtt-cl";
|
2023-08-04 22:07:22 +00:00
|
|
|
platforms = platforms.unix;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "srt-vtt";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|