{ lib , fetchFromGitHub , stdenvNoCC , wget , gzip , gawk , openssl , nodejs-slim , unixtools , patsh }: stdenvNoCC.mkDerivation { pname = "badown"; version = "unstable-2023-03-05"; src = fetchFromGitHub { owner = "stck-lzm"; repo = "badown"; rev = "4baf0b841860c246ff1c98d986665e0e00c57a58"; hash = "sha256-A/zeLIiUIWhO2tqsav3SQFzTKLD+eZGYnWMtWUvlOhc="; }; buildInputs = [ wget gzip gawk openssl nodejs-slim unixtools.getopt ]; nativeBuildInputs = [ patsh ]; buildPhase = '' patsh -f badown -s ${builtins.storeDir} ''; installPhase = '' runHook preInstall install -Dm755 badown $out/bin/badown runHook postInstall ''; meta.description = "bash-downloader for mediafire, zippyshare & mega"; }