about summary refs log tree commit diff
path: root/pkgs/applications/video/adl
diff options
context:
space:
mode:
authorWeebSorceress <hello@weebsorceress.anonaddy.me>2022-07-02 14:49:51 -0300
committerWeebSorceress <hello@weebsorceress.anonaddy.me>2022-07-06 17:01:53 -0300
commita885d43d61a501ffc777809a70ca55c1ce4f29d3 (patch)
treea534ac2658c19caed07568728c86d9c88744a2ef /pkgs/applications/video/adl
parenteced91d2f85cdea93c4fc4cde6ea1dc8deee59f6 (diff)
adl: init at 3.0.1
Diffstat (limited to 'pkgs/applications/video/adl')
-rw-r--r--pkgs/applications/video/adl/default.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/applications/video/adl/default.nix b/pkgs/applications/video/adl/default.nix
new file mode 100644
index 0000000000000..621f7246c8abf
--- /dev/null
+++ b/pkgs/applications/video/adl/default.nix
@@ -0,0 +1,43 @@
+{ lib, stdenv, fetchFromGitHub, pkgs, makeWrapper, ... }:
+
+stdenv.mkDerivation rec {
+  pname = "adl";
+  version = "3.0.1";
+
+  src = fetchFromGitHub {
+    owner = "RaitaroH";
+    repo = "adl";
+    rev = "65f68e1dcae4c0caa52668d3a854269e7d226f7c";
+    sha256 = "sha256-huGpDtkWrhZyKDNKXat8T3qtAyMjBaq8HFd1w1ThUVk=";
+  };
+
+  nativeBuildInputs = [ makeWrapper ];
+
+  # https://github.com/RaitaroH/adl#requirements
+  buildInputs = with pkgs; [
+    anime-downloader
+    frece
+    fzf
+    mpv
+    perl
+    trackma
+    ueberzug
+  ];
+
+  dontBuild = true;
+
+  installPhase = ''
+    mkdir -p $out/bin
+    cp $src/adl $out/bin
+    wrapProgram $out/bin/adl \
+      --prefix PATH : ${lib.makeBinPath buildInputs}
+  '';
+
+  meta = with lib; {
+    homepage = "https://github.com/RaitaroH/adl";
+    description = "popcorn anime-downloader + trackma wrapper";
+    license = licenses.gpl3Plus;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ WeebSorceress ];
+  };
+}