{ lib, stdenv, fetchFromGitHub, nodejs, pnpm_9, npmHooks, versionCheckHook, nix-update-script, }: let pnpm = pnpm_9; in stdenv.mkDerivation (finalAttrs: { pname = "taze"; version = "19.7.0"; src = fetchFromGitHub { owner = "antfu-collective"; repo = "taze"; tag = "v${finalAttrs.version}"; hash = "sha256-O+xeAM6sh6YK+yAtxQCTI59Dle/6Z4/ePbgqRGmZxlU="; }; pnpmDeps = pnpm.fetchDeps { inherit (finalAttrs) pname version src; fetcherVersion = 1; hash = "sha256-vXw5LPNcuF9wyI23rZhsvvMYTsPNOvSY3LoLntFdm3g="; }; nativeBuildInputs = [ nodejs pnpm.configHook npmHooks.npmInstallHook ]; buildPhase = '' runHook preBuild pnpm run build find dist -type f \( -name '*.cjs' -or -name '*.cts' -or -name '*.ts' \) -delete runHook postBuild ''; dontNpmPrune = true; nativeInstallCheckInputs = [ versionCheckHook ]; versionCheckProgramArg = "--version"; doInstallCheck = true; passthru.updateScript = nix-update-script { }; meta = { description = "Modern cli tool that keeps your deps fresh"; homepage = "https://github.com/antfu-collective/taze"; changelog = "https://github.com/antfu-collective/taze/releases/tag/v${finalAttrs.version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ xiaoxiangmoe ]; mainProgram = "taze"; }; })