mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
47 lines
989 B
Nix
47 lines
989 B
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchFromGitHub
|
|
, makeWrapper
|
|
, gnugrep
|
|
, gnused
|
|
, curl
|
|
, mpv
|
|
, aria2
|
|
, ffmpeg
|
|
, fzf
|
|
, openssl
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "dra-cla";
|
|
version = "unstable-2024-02-07";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CoolnsX";
|
|
repo = "dra-cla";
|
|
rev = "cf8a90c0c68338404e8a1434af0a6e65fc5d0a08";
|
|
hash = "sha256-3cz1VeDM0NHdYMiCDVnIq6Y/7rFSijhNrnxC36Yixxc=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm755 dra-cla $out/bin/dra-cla
|
|
|
|
wrapProgram $out/bin/dra-cla \
|
|
--prefix PATH : ${lib.makeBinPath [ gnugrep gnused curl mpv aria2 ffmpeg fzf openssl ]}
|
|
|
|
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;
|
|
mainProgram = "dra-cla";
|
|
};
|
|
}
|