sub-batch: 0.3.0 -> 0.4.0
Also use release tags and use alass as a dependency.
This commit is contained in:
parent
09caeaeb3d
commit
7dda4b853f
1 changed files with 14 additions and 6 deletions
|
@ -1,21 +1,29 @@
|
||||||
{ lib, stdenv
|
{ stdenv
|
||||||
|
, lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
|
, makeWrapper
|
||||||
|
, alass
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "sub-batch";
|
pname = "sub-batch";
|
||||||
version = "0.3.0";
|
version = "0.4.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "kl";
|
owner = "kl";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
# Upstream doesn't tag releases.
|
rev = "v${version}";
|
||||||
rev = "631bd6e2d931f8a8e12798f4b6460739a14bcfff";
|
sha256 = "sha256-5fDnSmnnVB1RGrNrnmp40OGFF+OAhppnhOjVgnYxXr0=";
|
||||||
sha256 = "sha256-424e40v2LBxlmgDKxvsT/iuUn/IKWPKMwih0cSQ5sFE=";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-l+BTF9PGb8bG8QHhNCoBsrsVX8nlRjPlaea1ESFfMW0=";
|
cargoSha256 = "sha256-cj1htJcUPCeYbP0t15UcMv4WQAG7tUROb97v4rUeMvU=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram "$out/bin/sub-batch" --prefix PATH : "${lib.makeBinPath [ alass ]}"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Match and rename subtitle files to video files and perform other batch operations on subtitle files";
|
description = "Match and rename subtitle files to video files and perform other batch operations on subtitle files";
|
||||||
|
|
Loading…
Reference in a new issue