diff options
author | Justin Humm <justin.humm@posteo.de> | 2021-02-26 22:52:34 +0100 |
---|---|---|
committer | Justin Humm <justin.humm@posteo.de> | 2021-02-28 19:58:26 +0100 |
commit | 09caeaeb3d9398c5353b75a6102e67cfaa75c6fa (patch) | |
tree | b571c8f1f1ac6336769c3c8a38e5398abdc7eff7 /pkgs/applications/video/alass | |
parent | fa4ce3a7cce5b9def93897c628f7ecaa68cf77e2 (diff) |
alass: init at 2.0.0
Diffstat (limited to 'pkgs/applications/video/alass')
-rw-r--r-- | pkgs/applications/video/alass/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/applications/video/alass/default.nix b/pkgs/applications/video/alass/default.nix new file mode 100644 index 0000000000000..c57a224ee0aaa --- /dev/null +++ b/pkgs/applications/video/alass/default.nix @@ -0,0 +1,33 @@ +{ 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-6CVa/ypz37bm/3R0Gi65ovu4SIwWcgVde3Z2W1R16mk="; + + 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 ]; + }; +} |