mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
Added `checkFlags` to skip tests that require `alass` & `alass-cli` which is not currently in nixpkgs Added `versionCheckHook` Added `changelog` (https://github.com/kl/sub-batch/blob/v2.0.2/CHANGELOG) to `meta`
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "sub-batch";
|
|
version = "2.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kl";
|
|
repo = "sub-batch";
|
|
rev = "v${finalAttrs.version}";
|
|
sha256 = "sha256-L8Nw2HavLxwbJZ8WzrtJKZxfP77HCsVef9WrdhbdpqQ=";
|
|
};
|
|
|
|
cargoHash = "sha256-sqXVlihZWEIP/Ea0kEtoyaLct9v0pWRq0imf+6cH8TM=";
|
|
|
|
checkFlags = [
|
|
# requires alass-cli / alass which is not packaged in nixpkgs
|
|
"--skip=can_run_alass_on_sub_file"
|
|
"--skip=can_show_confirm_without_panicking"
|
|
];
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
doInstallCheck = true;
|
|
|
|
meta = {
|
|
description = "Match and rename subtitle files to video files and perform other batch operations on subtitle files";
|
|
changelog = "https://github.com/kl/sub-batch/blob/v${finalAttrs.version}/CHANGELOG";
|
|
homepage = "https://github.com/kl/sub-batch";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
erictapen
|
|
kangazero
|
|
];
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
mainProgram = "sub-batch";
|
|
};
|
|
})
|