generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subdl.nix
31 lines (29 loc) · 899 Bytes
/
subdl.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# subdl with "--utf8" option (libmagic)
{ lib, fetchFromGitHub, python3 }:
python3.pkgs.buildPythonApplication {
pname = "subdl";
version = "unstable-2022-09-09";
src = fetchFromGitHub {
owner = "alexanderwink";
repo = "subdl";
rev = "da2398546c33da1665dbc2d985b30d959c6f5a0c";
sha256 = "sha256-YI1lTBKb5tHDXVbOoEE+Y0JKYusV1mbbj/xyq8y2Qak=";
};
patches = [
# fix: utf8 option fails to convert some subtitles
# https://github.com/alexanderwink/subdl/issues/37
./libmagic.patch
./libmagic-2.patch
./libmagic-3.patch
];
propagatedBuildInputs = [
python3.pkgs.magic
];
meta = {
homepage = "https://github.com/alexanderwink/subdl";
description = "A command-line tool to download subtitles from opensubtitles.org";
platforms = lib.platforms.all;
license = lib.licenses.gpl3;
maintainers = [ lib.maintainers.exfalso ];
};
}