nixpkgs/pkgs/tools/cd-dvd/srt-to-vtt-cl/default.nix
Travis A. Everett 3ea80c9c2c srt-to-vtt-cl: fix macOS builds
The upstream Makefile is using logic to build into different dirs
depending on uname output. Trivial to get macOS builds working if
we just don't do that.

I've also stripped out a use of substituteAll that was having no
effect (the variables it replaced were removed during review of
the initial PR.)
2023-08-03 22:39:24 -05:00

32 lines
724 B
Nix

{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "srt-to-vtt-cl";
version = "unstable-2019-01-03";
src = fetchFromGitHub {
owner = "nwoltman";
repo = pname;
rev = "ce3d0776906eb847c129d99a85077b5082f74724";
sha256 = "0qxysj08gjr6npyvg148llmwmjl2n9cyqjllfnf3gxb841dy370n";
};
patches = [
./fix-validation.patch
./simplify-macOS-builds.patch
];
installPhase = ''
mkdir -p $out/bin
cp bin/srt-vtt $out/bin
'';
meta = with 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.unix;
};
}