mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
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
|
||||
, rustPlatform
|
||||
, makeWrapper
|
||||
, alass
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "sub-batch";
|
||||
version = "0.3.0";
|
||||
version = "0.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kl";
|
||||
repo = pname;
|
||||
# Upstream doesn't tag releases.
|
||||
rev = "631bd6e2d931f8a8e12798f4b6460739a14bcfff";
|
||||
sha256 = "sha256-424e40v2LBxlmgDKxvsT/iuUn/IKWPKMwih0cSQ5sFE=";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-5fDnSmnnVB1RGrNrnmp40OGFF+OAhppnhOjVgnYxXr0=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-l+BTF9PGb8bG8QHhNCoBsrsVX8nlRjPlaea1ESFfMW0=";
|
||||
cargoSha256 = "sha256-cj1htJcUPCeYbP0t15UcMv4WQAG7tUROb97v4rUeMvU=";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram "$out/bin/sub-batch" --prefix PATH : "${lib.makeBinPath [ alass ]}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Match and rename subtitle files to video files and perform other batch operations on subtitle files";
|
||||
|
|
Loading…
Reference in a new issue