@@ -0,0 +1,33 @@
1+{ lib
2+, fetchFromGitHub
3+, rustPlatform
4+, makeWrapper
5+, ffmpeg
6+}:
7+
8+rustPlatform.buildRustPackage rec {
9+ pname = "alass";
10+ version = "2.0.0";
11+
12+ src = fetchFromGitHub {
13+ owner = "kaegi";
14+ repo = pname;
15+ rev = "v${version}";
16+ sha256 = "sha256-q1IV9TtmznpR7RO75iN0p16nmTja5ADWqFj58EOPWvU=";
17+ };
18+
19+ cargoSha256 = "sha256-6CVa/ypz37bm/3R0Gi65ovu4SIwWcgVde3Z2W1R16mk=";
20+
21+ nativeBuildInputs = [ makeWrapper ];
22+
23+ postInstall = ''
24+ wrapProgram "$out/bin/alass-cli" --prefix PATH : "${lib.makeBinPath [ ffmpeg ]}"
25+ '';
26+
27+ meta = with lib; {
28+ description = "Automatic Language-Agnostic Subtitle Synchronization";
29+ homepage = "https://github.com/kaegi/alass";
30+ license = licenses.gpl3Plus;
31+ maintainers = with maintainers; [ erictapen ];
32+ };
33+}