Add ghost archive
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
36
packages/ghost/default.nix
Normal file
36
packages/ghost/default.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ pkgs, ... }:
|
||||
# AUTO-UPDATE: nix-update --flake ghost
|
||||
pkgs.stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "ghost";
|
||||
version = "5.130.2";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "TryGhost";
|
||||
repo = "Ghost";
|
||||
rev = "tags/v${finalAttrs.version}";
|
||||
hash = "sha256-y/OCUrnScSKCZMF3B6LM9eAKpkyBubn77z+N1kcK4J0=";
|
||||
};
|
||||
|
||||
offlineCache = pkgs.fetchYarnDeps {
|
||||
yarnLock = finalAttrs.src + "/yarn.lock";
|
||||
hash = "sha256-ANk9LZ9ESWOQv8sr53IfLdlShYO4owcp54dRlJZwwmc=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
nodejs_20
|
||||
yarnConfigHook
|
||||
yarnBuildHook
|
||||
npmHooks.npmInstallHook
|
||||
faketty
|
||||
];
|
||||
|
||||
# FIXME: https://github.com/nrwl/nx/issues/22445
|
||||
# FIXME: https://github.com/nrwl/nx/issues/29137
|
||||
buildPhase = ''
|
||||
faketty yarn archive --offline --parallel 1
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
cp ghost/core/ghost-${finalAttrs.version}.tgz $out
|
||||
'';
|
||||
})
|
Reference in New Issue
Block a user