nixpkgs/pkgs/tools/cd-dvd/srt-to-vtt-cl/default.nix
Eric Dallo ccc13c2e53 srt-vtt: init at 2019-01-03 (#70885)
* srt-vtt: init at 2019-01-03

* Append 'unstable' to pname

Co-Authored-By: Marek Mahut <marek.mahut@gmail.com>

* Fix version

* Remove which validation

* Add support to linux only

Co-Authored-By: Evils-Devils <30512529+Evils-Devils@users.noreply.github.com>
2019-11-07 17:21:47 -05:00

32 lines
767 B
Nix

{ stdenv, fetchFromGitHub, substituteAll }:
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
'';
meta = with stdenv.lib; {
description = "Convert SRT files to VTT";
license = licenses.mit;
maintainers = with maintainers; [ ericdallo ];
homepage = https://github.com/nwoltman/srt-to-vtt-cl;
platforms = platforms.linux;
};
}