Merge pull request #235332 from QJoly/Subtitlr

subtitlr: init at 0.1.0
This commit is contained in:
Pol Dellaiera 2023-06-01 20:18:01 +02:00 committed by GitHub
commit 6c34e36fd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,35 @@
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "Subtitlr";
version = "0.1.0";
src = fetchFromGitHub {
owner = "yoanbernabeu";
repo = pname;
rev = version;
hash = "sha256-fwDIE8DFVd7NRhi8bBmFxrmGdT2ZtSFWBaynV+xz3ms=";
};
vendorHash = "sha256-t92nz42sv8bE0JIkSFB2+WBz1Um8kcRSotpXcPIy3eQ=";
ldflags = [ "-s" "-w" ];
nativeBuildInputs = [
installShellFiles
];
postInstall = ''
installShellCompletion --cmd Subtitlr \
--bash <($out/bin/Subtitlr completion bash) \
--fish <($out/bin/Subtitlr completion fish) \
--zsh <($out/bin/Subtitlr completion zsh)
'';
meta = with lib; {
description = "This application, a subtitle generator for YouTube, utilizes OpenAI's Whisper API.";
homepage = "https://github.com/yoanbernabeu/Subtitlr/";
license = licenses.mit;
maintainers = with maintainers; [ qjoly ];
};
}

View File

@ -34440,6 +34440,8 @@ with pkgs;
sublime-music = callPackage ../applications/audio/sublime-music { };
subtitlr = callPackage ../applications/audio/subtitlr { };
subunit = callPackage ../development/libraries/subunit { };
surf = callPackage ../applications/networking/browsers/surf { gtk = gtk2; };