about summary refs log blame commit diff
path: root/packages/adl/default.nix
blob: 77e00bc10e5d67a7375a059c9ae6e0ce89491815 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                                         






                                                     
                                                                   
    
                         




                                      
                                                                                  

     
{ stdenv, lib, fetchFromGitHub, makeWrapper, bash, anime-downloader, trackma, mpv, fzf }:
stdenv.mkDerivation {
  pname = "adl";
  version = "1.0";
  src = fetchFromGitHub {
    owner = "RaitaroH";
    repo = "adl";
    rev = "65f68e1dcae4c0caa52668d3a854269e7d226f7c";
    sha256 = "sha256-huGpDtkWrhZyKDNKXat8T3qtAyMjBaq8HFd1w1ThUVk=";
  };
  buildInputs = [ bash ];
  nativeBuildInputs = [ makeWrapper ];
  installPhase = ''
    mkdir -p $out/bin
    cp adl $out/bin/adl  
    wrapProgram $out/bin/adl \
      --prefix PATH : ${lib.makeBinPath [ bash anime-downloader trackma mpv fzf ]}
  '';
}