about summary refs log tree commit diff
path: root/pkgs/applications/video
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2018-02-06 21:32:53 +0000
committerGitHub <noreply@github.com>2018-02-06 21:32:53 +0000
commit907474e649fa327c79195cf917fb6d89795cf110 (patch)
treee4f5737abcdf7f78e54da6578ab096b0a73149af /pkgs/applications/video
parentfdcbb263ace163939b02f1ac42719cf1362eaab6 (diff)
parent4b481684b18c0859994e97595fd3805a0c640d4b (diff)
Merge pull request #33088 from exFalso/add-subdl
init subdl package
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r--pkgs/applications/video/subdl/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/applications/video/subdl/default.nix b/pkgs/applications/video/subdl/default.nix
new file mode 100644
index 0000000000000..32bd731f16e94
--- /dev/null
+++ b/pkgs/applications/video/subdl/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, fetchFromGitHub, python3 }:
+
+stdenv.mkDerivation rec {
+  name = "subdl-0.0pre.2017.11.06";
+
+  src = fetchFromGitHub {
+    owner = "alexanderwink";
+    repo = "subdl";
+    rev = "4cf5789b11f0ff3f863b704b336190bf968cd471";
+    sha256 = "0kmk5ck1j49q4ww0lvas2767kwnzhkq0vdwkmjypdx5zkxz73fn8";
+  };
+
+  meta = {
+    homepage = https://github.com/alexanderwink/subdl;
+    description = "A command-line tool to download subtitles from opensubtitles.org";
+    platforms = stdenv.lib.platforms.all;
+    license = stdenv.lib.licenses.gpl3;
+    maintainers = [ stdenv.lib.maintainers.exfalso ];
+  };
+
+  buildInputs = [ python3 ];
+
+  installPhase = ''
+    install -vD subdl $out/bin/subdl
+  '';  
+}