2023-05-02 19:02:46 +02:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, gnugrep
|
|
|
|
, gnused
|
|
|
|
, curl
|
|
|
|
, mpv
|
|
|
|
, aria2
|
|
|
|
, ffmpeg
|
2024-02-07 04:13:43 +01:00
|
|
|
, fzf
|
2023-05-02 19:02:46 +02:00
|
|
|
, openssl
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
pname = "dra-cla";
|
2024-02-07 04:13:43 +01:00
|
|
|
version = "unstable-2024-02-07";
|
2023-05-02 19:02:46 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CoolnsX";
|
|
|
|
repo = "dra-cla";
|
2024-02-07 04:13:43 +01:00
|
|
|
rev = "cf8a90c0c68338404e8a1434af0a6e65fc5d0a08";
|
|
|
|
hash = "sha256-3cz1VeDM0NHdYMiCDVnIq6Y/7rFSijhNrnxC36Yixxc=";
|
2023-05-02 19:02:46 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm755 dra-cla $out/bin/dra-cla
|
|
|
|
|
|
|
|
wrapProgram $out/bin/dra-cla \
|
2024-02-07 04:13:43 +01:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ gnugrep gnused curl mpv aria2 ffmpeg fzf openssl ]}
|
2023-05-02 19:02:46 +02:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/CoolnsX/dra-cla";
|
|
|
|
description = "Cli tool to browse and play korean drama, chinese drama";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ idlip ];
|
|
|
|
platforms = platforms.unix;
|
2023-11-27 02:17:53 +01:00
|
|
|
mainProgram = "dra-cla";
|
2023-05-02 19:02:46 +02:00
|
|
|
};
|
|
|
|
}
|