Merge pull request #256309 from paveloom/substudy
substudy: init at 0.6.10
This commit is contained in:
commit
416298e51c
4781
pkgs/by-name/su/substudy/Cargo.lock
generated
Normal file
4781
pkgs/by-name/su/substudy/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
52
pkgs/by-name/su/substudy/package.nix
Normal file
52
pkgs/by-name/su/substudy/package.nix
Normal file
@ -0,0 +1,52 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
|
||||
ffmpeg,
|
||||
makeWrapper,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "substudy";
|
||||
version = "0.6.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "emk";
|
||||
repo = "subtitles-rs";
|
||||
rev = "${pname}_v${version}";
|
||||
hash = "sha256-ACYbSQKaOJ2hS8NbOAppfKo+Mk3CKg0OAwb56AH42Zs=";
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"async-openai-0.19.1" = "sha256-UrWSZW3LxMZfinmQAjouhqTrhVhHkjgz9EzrZxR0qG4=";
|
||||
};
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
nativeCheckInputs = [ ffmpeg ];
|
||||
|
||||
cargoBuildFlags = [ "-p substudy" ];
|
||||
|
||||
preCheck = ''
|
||||
# That's to make sure the `test_ai_request_static`
|
||||
# test has access to the cache at `$HOME/.cache`
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram "$out/bin/substudy" \
|
||||
--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Learn foreign languages using audio and subtitles extracted from video files";
|
||||
homepage = "http://www.randomhacks.net/substudy";
|
||||
license = licenses.asl20;
|
||||
mainProgram = "substudy";
|
||||
maintainers = with maintainers; [ paveloom ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user