2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, python3 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "subdl";
|
|
|
|
version = "unstable-2017-11.06";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alexanderwink";
|
|
|
|
repo = "subdl";
|
|
|
|
rev = "4cf5789b11f0ff3f863b704b336190bf968cd471";
|
|
|
|
sha256 = "0kmk5ck1j49q4ww0lvas2767kwnzhkq0vdwkmjypdx5zkxz73fn8";
|
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
buildInputs = [ python3 ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -vD subdl $out/bin/subdl
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/alexanderwink/subdl";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Command-line tool to download subtitles from opensubtitles.org";
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.all;
|
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = [ lib.maintainers.exfalso ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "subdl";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|