about summary refs log tree commit diff
path: root/packages/adl/default.nix
blob: 4ec7ac4502b58d3c2a10962ec4b67ad1732bc26b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ stdenv, lib, fetchFromGitHub, makeWrapper, bash, anime-dl, trackma, mpv, fzf }:
stdenv.mkDerivation {
  pname = "adl";
  version = "1.0";
  src = fetchFromGitHub {
    owner = "RaitaroH";
    repo = "adl";
    rev = "65f68e1dcae4c0caa52668d3a854269e7d226f7c";
    sha256 = "sha256-fRK3N+UnBPXpvx4Z64JC5TstUi//x5jtrm+rFDxIQUs=";
  };
  buildInputs = [ bash anime-dl trackma mpv fzf ];
  nativeBuildInputs = [ makeWrapper ];
  installPhase = ''
    mkdir -p $out/bin
    cp adl $out/bin/adl  
    wrapProgram $out/bin/adl \
      --prefix PATH : ${lib.makeBinPath [ bash anime-dl trackma mpv fzf ]}
  '';
}