mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
commit
6c34e36fd0
35
pkgs/applications/audio/subtitlr/default.nix
Normal file
35
pkgs/applications/audio/subtitlr/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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; };
|
||||
|
Loading…
Reference in New Issue
Block a user