diff options
author | QJoly <github@thoughtless.eu> | 2023-06-01 08:04:01 +0200 |
---|---|---|
committer | QJoly <github@thoughtless.eu> | 2023-06-01 09:44:11 +0200 |
commit | ff35c6cf96a55832221b53ec37559000664070cc (patch) | |
tree | 5dd8cdd8184434f4d23d2e57cb7794901f306c63 /pkgs/applications/audio/subtitlr | |
parent | 9c1fd07276c5e477a54713df40734c9939e6b20c (diff) |
subtitlr: init at 0.1.0
Fix path Fix all-packages.nix
Diffstat (limited to 'pkgs/applications/audio/subtitlr')
-rw-r--r-- | pkgs/applications/audio/subtitlr/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/applications/audio/subtitlr/default.nix b/pkgs/applications/audio/subtitlr/default.nix new file mode 100644 index 0000000000000..04c377c210599 --- /dev/null +++ b/pkgs/applications/audio/subtitlr/default.nix @@ -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 ]; + }; +} |