Skip to content

Commit

Permalink
substudy: init at 0.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
paveloom committed Sep 23, 2023
1 parent b1adee2 commit 6e3753e
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions pkgs/by-name/su/substudy/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{ lib
, fetchFromGitHub
, rustPlatform

, ffmpeg
, makeWrapper
}:

rustPlatform.buildRustPackage rec {
pname = "substudy";
version = "0.4.5";

src = fetchFromGitHub {
owner = "emk";
repo = "subtitles-rs";
rev = "${pname}_v${version}";
hash = "sha256-fx/Oaylh4XRjlgLJrICyADfyilFU+6INEEwdm+PB6WA=";
};

cargoHash = "sha256-AaopA555LJVLb8HFMHkYnAbQjuT02sSiHvTNG84H7wU=";

nativeBuildInputs = [
makeWrapper
];

nativeCheckInputs = [
ffmpeg
];

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:https://www.randomhacks.net/substudy";
license = licenses.cc0;
mainProgram = "substudy";
maintainers = with maintainers; [ paveloom ];
};
}

0 comments on commit 6e3753e

Please sign in to comment.