Skip to content

Commit

Permalink
ghost-cli: init at 1.26.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cything committed Dec 27, 2024
1 parent ee0612a commit c49d996
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions pkgs/by-name/gh/ghost-cli/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
lib,
stdenv,
fetchFromGitHub,
fetchYarnDeps,
yarnConfigHook,
yarnInstallHook,
versionCheckHook,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "ghost-cli";
version = "1.26.1";

src = fetchFromGitHub {
owner = "TryGhost";
repo = "Ghost-CLI";
rev = "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'';

meta = {
description = "CLI Tool for installing & updating Ghost";
mainProgram = "ghost";
homepage = "https://ghost.org/docs/ghost-cli/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ cything ];
};
})

0 comments on commit c49d996

Please sign in to comment.