lol
1{ stdenv
2, lib
3, fetchFromGitHub
4, rustPlatform
5, makeWrapper
6, alass
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "sub-batch";
11 version = "0.4.1";
12
13 src = fetchFromGitHub {
14 owner = "kl";
15 repo = pname;
16 rev = "v${version}";
17 sha256 = "sha256-WUW+lOGbZ82NJxmW+Ogxslf3COOp62aZ/08Yn26l4T0=";
18 };
19
20 cargoSha256 = "sha256-m9nBubmuuOcJyegmYGJizY/2b7oamBHKFNIaxOtikcA=";
21
22 nativeBuildInputs = [ makeWrapper ];
23
24 postInstall = ''
25 wrapProgram "$out/bin/sub-batch" --prefix PATH : "${lib.makeBinPath [ alass ]}"
26 '';
27
28 meta = with lib; {
29 description = "Match and rename subtitle files to video files and perform other batch operations on subtitle files";
30 homepage = "https://github.com/kl/sub-batch";
31 license = licenses.mit;
32 maintainers = with maintainers; [ erictapen ];
33 broken = stdenv.isDarwin;
34 };
35}