about summary refs log tree commit diff
path: root/pkgs/applications/video/subdl/default.nix
blob: 61b5af2f0b57b28b6407d5897a3fe2c0301cbb4f (plain) (blame)
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
{ lib, stdenv, fetchFromGitHub, python3 }:

stdenv.mkDerivation {
  pname = "subdl";
  version = "unstable-2017-11.06";

  src = fetchFromGitHub {
    owner = "alexanderwink";
    repo = "subdl";
    rev = "4cf5789b11f0ff3f863b704b336190bf968cd471";
    sha256 = "0kmk5ck1j49q4ww0lvas2767kwnzhkq0vdwkmjypdx5zkxz73fn8";
  };

  buildInputs = [ python3 ];

  installPhase = ''
    install -vD subdl $out/bin/subdl
  '';

  meta = {
    homepage = "https://github.com/alexanderwink/subdl";
    description = "Command-line tool to download subtitles from opensubtitles.org";
    platforms = lib.platforms.all;
    license = lib.licenses.gpl3;
    maintainers = [ lib.maintainers.exfalso ];
    mainProgram = "subdl";
  };
}