2024-06-20 14:57:18 +00:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, animdl
|
|
|
|
, frece
|
|
|
|
, fzf
|
|
|
|
, mpv
|
|
|
|
, perl
|
|
|
|
, trackma
|
|
|
|
, ueberzug
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
2022-07-14 12:49:19 +00:00
|
|
|
pname = "adl";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "3.2.8";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RaitaroH";
|
|
|
|
repo = "adl";
|
2024-06-20 14:57:18 +00:00
|
|
|
rev = "a40f31454de856d9e9235d6216eaf8f4296111c4";
|
|
|
|
hash = "sha256-Kg/iGyEdWJyoPn5lVqRCJX2eqdP1xwZqNU2RvTrhZko=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
# https://github.com/RaitaroH/adl#requirements
|
2024-06-20 14:57:18 +00:00
|
|
|
buildInputs = [
|
|
|
|
animdl
|
2022-07-14 12:49:19 +00:00
|
|
|
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";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Popcorn anime scraper/downloader + trackma wrapper";
|
|
|
|
license = licenses.gpl3Only;
|
2022-07-14 12:49:19 +00:00
|
|
|
platforms = platforms.linux;
|
2024-06-20 14:57:18 +00:00
|
|
|
maintainers = with maintainers; [ weathercold ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "adl";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
}
|