cloudflare-cli: 4.2.0 -> 5.0.5 (#442468)

This commit is contained in:
Felix Bargfeldt
2025-09-13 15:31:21 +00:00
committed by GitHub
+10 -3
View File
@@ -6,31 +6,38 @@
yarnConfigHook,
yarnInstallHook,
nodejs,
makeBinaryWrapper,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "cloudflare-cli";
version = "4.2.0";
version = "5.0.5";
src = fetchFromGitHub {
owner = "danielpigott";
repo = "cloudflare-cli";
tag = "v${finalAttrs.version}";
hash = "sha256-cT+cMekXhHKfFi+dH1dCA/YNBSyYePJIZBSkDMPZZ14=";
hash = "sha256-+QlSKXkGXc72FCQAlfZnBK5tQ1jbpICxR1Xe73RSgbk=";
};
yarnOfflineCache = fetchYarnDeps {
yarnLock = finalAttrs.src + "/yarn.lock";
hash = "sha256-0SFXgaLQE/MkqC9id7DAiP422tEyTt2gpgpIdXViFBI=";
hash = "sha256-pPM2lKjSS6sFj5R+eaXT2mXoCQouq4UleCN1IQilnnw=";
};
nativeBuildInputs = [
yarnConfigHook
yarnInstallHook
nodejs
makeBinaryWrapper
];
postInstall = ''
wrapProgram $out/bin/cfcli \
--chdir $out/lib/node_modules/cloudflare-cli
'';
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck