37 lines
873 B
Nix
37 lines
873 B
Nix
{ pkgs, ... }:
|
|
# AUTO-UPDATE: nix-update --flake ghost
|
|
pkgs.stdenv.mkDerivation (finalAttrs: {
|
|
pname = "ghost";
|
|
version = "5.130.3";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "TryGhost";
|
|
repo = "Ghost";
|
|
rev = "tags/v${finalAttrs.version}";
|
|
hash = "sha256-prmOcEzGvIB4brw8Cf7dknuts2OJdJIMZn6dGZm4XW4=";
|
|
};
|
|
|
|
offlineCache = pkgs.fetchYarnDeps {
|
|
yarnLock = finalAttrs.src + "/yarn.lock";
|
|
hash = "sha256-DP9f0RKM4CodvSzDoJjqZpxsGqscSeEIGr2/pq5Vbag=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
})
|