2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, substituteAll }:
|
2019-11-07 22:21:47 +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 = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-validation.patch;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp bin/$(uname -s)/$(uname -m)/srt-vtt $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-11-07 22:21:47 +00:00
|
|
|
description = "Convert SRT files to VTT";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ericdallo ];
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/nwoltman/srt-to-vtt-cl";
|
2019-11-07 22:21:47 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|