From 509cd74e49cfcd75bda494f32c677b018cc110a0 Mon Sep 17 00:00:00 2001 From: Justin Humm Date: Sun, 10 Jan 2021 10:31:25 +0100 Subject: [PATCH] sub-batch: init at 0.3.0 --- pkgs/applications/video/sub-batch/default.nix | 27 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/applications/video/sub-batch/default.nix diff --git a/pkgs/applications/video/sub-batch/default.nix b/pkgs/applications/video/sub-batch/default.nix new file mode 100644 index 00000000000..244e826f0a2 --- /dev/null +++ b/pkgs/applications/video/sub-batch/default.nix @@ -0,0 +1,27 @@ +{ stdenv +, fetchFromGitHub +, rustPlatform +}: + +rustPlatform.buildRustPackage rec { + pname = "sub-batch"; + version = "0.3.0"; + + src = fetchFromGitHub { + owner = "kl"; + repo = pname; + # Upstream doesn't tag releases. + rev = "631bd6e2d931f8a8e12798f4b6460739a14bcfff"; + sha256 = "sha256-424e40v2LBxlmgDKxvsT/iuUn/IKWPKMwih0cSQ5sFE="; + }; + + cargoSha256 = "sha256-l+BTF9PGb8bG8QHhNCoBsrsVX8nlRjPlaea1ESFfMW0="; + + meta = with stdenv.lib; { + description = "Match and rename subtitle files to video files and perform other batch operations on subtitle files"; + homepage = "https://github.com/kl/sub-batch"; + license = licenses.mit; + maintainers = with maintainers; [ erictapen ]; + broken = stdenv.isDarwin; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 42b6c9d6026..946c27ff518 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16441,6 +16441,8 @@ in streamlink = callPackage ../applications/video/streamlink { pythonPackages = python3Packages; }; streamlink-twitch-gui-bin = callPackage ../applications/video/streamlink-twitch-gui/bin.nix {}; + sub-batch = callPackage ../applications/video/sub-batch { }; + subdl = callPackage ../applications/video/subdl { }; subtitleeditor = callPackage ../applications/video/subtitleeditor { enchant = enchant1; };