@@ -1,21 +1,29 @@
1−{ lib, stdenv
1+{ stdenv
2+, lib
23, fetchFromGitHub
34, rustPlatform
5+, makeWrapper
6+, alass
47}:
58
69rustPlatform.buildRustPackage rec {
710 pname = "sub-batch";
8− version = "0.3.0";
11+ version = "0.4.0";
912
1013 src = fetchFromGitHub {
1114 owner = "kl";
1215 repo = pname;
13− # Upstream doesn't tag releases.
14− rev = "631bd6e2d931f8a8e12798f4b6460739a14bcfff";
15− sha256 = "sha256-424e40v2LBxlmgDKxvsT/iuUn/IKWPKMwih0cSQ5sFE=";
16+ rev = "v${version}";
17+ sha256 = "sha256-5fDnSmnnVB1RGrNrnmp40OGFF+OAhppnhOjVgnYxXr0=";
1618 };
1719
18− cargoSha256 = "sha256-l+BTF9PGb8bG8QHhNCoBsrsVX8nlRjPlaea1ESFfMW0=";
20+ cargoSha256 = "sha256-cj1htJcUPCeYbP0t15UcMv4WQAG7tUROb97v4rUeMvU=";
21+
22+ nativeBuildInputs = [ makeWrapper ];
23+
24+ postInstall = ''
25+ wrapProgram "$out/bin/sub-batch" --prefix PATH : "${lib.makeBinPath [ alass ]}"
26+ '';
1927
2028 meta = with lib; {
2129 description = "Match and rename subtitle files to video files and perform other batch operations on subtitle files";