ghost-cli: init at 1.26.1 (#366378)

This commit is contained in:
Gaétan Lepage 2024-12-30 22:17:01 +01:00 committed by GitHub
commit b5e20c720d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 54 additions and 0 deletions

View file

@ -4869,6 +4869,12 @@
githubId = 217899;
name = "Cyryl Płotnicki";
};
cything = {
name = "cy";
email = "nix@cything.io";
github = "cything";
githubId = 45041772;
};
d3vil0p3r = {
name = "Antonio Voza";
email = "vozaanthony@gmail.com";

View file

@ -0,0 +1,48 @@
{
lib,
stdenv,
fetchFromGitHub,
fetchYarnDeps,
yarnConfigHook,
yarnInstallHook,
versionCheckHook,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ghost-cli";
version = "1.26.1";
src = fetchFromGitHub {
owner = "TryGhost";
repo = "Ghost-CLI";
tag = "v${finalAttrs.version}";
hash = "sha256-2zyRkPTQBzF+7nmlHPMi4S0BAdmUwIBkwD71y1y7Pn8=";
};
yarnOfflineCache = fetchYarnDeps {
yarnLock = finalAttrs.src + "/yarn.lock";
hash = "sha256-No+Hkb2ivrCSd0S9L5QxZ8ReX9NANMRITKHFvjzRSuc=";
};
nativeBuildInputs = [
yarnConfigHook
yarnInstallHook
];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
versionCheckProgram = ''${placeholder "out"}/bin/ghost'';
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "CLI Tool for installing & updating Ghost";
mainProgram = "ghost";
homepage = "https://ghost.org/docs/ghost-cli/";
changelog = "https://github.com/TryGhost/Ghost-CLI/blob/v${finalAttrs.version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ cything ];
};
})