git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #114520 from erictapen/sub-batch-0.4.0
commit443aa555298b00d85cebee8007970398c2d92616 authorSandro <sandro.jaeckel@gmail.com> dateFri 5 Mar 2021, 19:18 (6 years ago) parentb1ffbf37dda4b8
3 files changed+49−6
pkgs/applications/video/alass/default.nix+33 pkgs/applications/video/sub-batch/default.nix+14−6 pkgs/top-level/all-packages.nix+2
pkgs/applications/video/alass/default.nixnew file+33
@@ -0,0 +1,33 @@
1+{ lib
2+, fetchFromGitHub
3+, rustPlatform
4+, makeWrapper
5+, ffmpeg
6+}:
7+
8+rustPlatform.buildRustPackage rec {
9+ pname = "alass";
10+ version = "2.0.0";
11+
12+ src = fetchFromGitHub {
13+ owner = "kaegi";
14+ repo = pname;
15+ rev = "v${version}";
16+ sha256 = "sha256-q1IV9TtmznpR7RO75iN0p16nmTja5ADWqFj58EOPWvU=";
17+ };
18+
19+ cargoSha256 = "sha256-6CVa/ypz37bm/3R0Gi65ovu4SIwWcgVde3Z2W1R16mk=";
20+
21+ nativeBuildInputs = [ makeWrapper ];
22+
23+ postInstall = ''
24+ wrapProgram "$out/bin/alass-cli" --prefix PATH : "${lib.makeBinPath [ ffmpeg ]}"
25+ '';
26+
27+ meta = with lib; {
28+ description = "Automatic Language-Agnostic Subtitle Synchronization";
29+ homepage = "https://github.com/kaegi/alass";
30+ license = licenses.gpl3Plus;
31+ maintainers = with maintainers; [ erictapen ];
32+ };
33+}
pkgs/applications/video/sub-batch/default.nix+14−6
@@ -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";
pkgs/top-level/all-packages.nix+2
@@ -13250,6 +13250,8 @@ in
1325013250
1325113251 agg = callPackage ../development/libraries/agg { };
1325213252
13253+ alass = callPackage ../applications/video/alass { };
13254+
1325313255 allegro = allegro4;
1325413256 allegro4 = callPackage ../development/libraries/allegro {};
1325513257 allegro5 = callPackage ../development/libraries/allegro/5.nix {};