depot/third_party/nixpkgs/pkgs/applications/video/alass/default.nix
Default email ec92d4d331 Project import generated by Copybara.
GitOrigin-RevId: 540dccb2aeaffa9dc69bfdc41c55abd7ccc6baa3
2021-05-28 11:39:13 +02:00

33 lines
765 B
Nix

{ lib
, fetchFromGitHub
, rustPlatform
, makeWrapper
, ffmpeg
}:
rustPlatform.buildRustPackage rec {
pname = "alass";
version = "2.0.0";
src = fetchFromGitHub {
owner = "kaegi";
repo = pname;
rev = "v${version}";
sha256 = "sha256-q1IV9TtmznpR7RO75iN0p16nmTja5ADWqFj58EOPWvU=";
};
cargoSha256 = "sha256-6swIoVp1B4CMvaGvq868LTKkzpI6zFKJNgUVqjdyH20=";
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram "$out/bin/alass-cli" --prefix PATH : "${lib.makeBinPath [ ffmpeg ]}"
'';
meta = with lib; {
description = "Automatic Language-Agnostic Subtitle Synchronization";
homepage = "https://github.com/kaegi/alass";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ erictapen ];
};
}