From a885d43d61a501ffc777809a70ca55c1ce4f29d3 Mon Sep 17 00:00:00 2001 From: WeebSorceress Date: Sat, 2 Jul 2022 14:49:51 -0300 Subject: [PATCH] adl: init at 3.0.1 --- pkgs/applications/video/adl/default.nix | 43 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 45 insertions(+) create mode 100644 pkgs/applications/video/adl/default.nix diff --git a/pkgs/applications/video/adl/default.nix b/pkgs/applications/video/adl/default.nix new file mode 100644 index 000000000000..621f7246c8ab --- /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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7b2d834436f5..75b70903bf7b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25494,6 +25494,8 @@ with pkgs; adobe-reader = pkgsi686Linux.callPackage ../applications/misc/adobe-reader { }; + adl = callPackage ../applications/video/adl { }; + appvm = callPackage ../applications/virtualization/appvm { }; yggdrasil = callPackage ../tools/networking/yggdrasil { };