nixpkgs/pkgs/by-name/ad/adl/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.0 KiB
Nix
Raw Permalink Normal View History

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