feat: ghost

This commit is contained in:
Anish Lakhwara
2024-05-21 20:39:19 -07:00
parent a37a72e81f
commit 091b653c9a
4 changed files with 186 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
source "$stdenv"/setup
export HOME=$(mktemp -d)
npm install --loglevel=info --logs-max=0 "ghost-cli@$ghostCliVersion"
mkdir --parents "$out"/
node_modules/ghost-cli/bin/ghost install "$version" --db=sqlite3 \
--no-enable --no-prompt --no-stack --no-setup --no-start --dir "$out"
+11
View File
@@ -0,0 +1,11 @@
{ pkgs }:
let
pname = "ghost";
version = "5.8.0";
in pkgs.stdenv.mkDerivation {
inherit pname version;
buildInputs = with pkgs; [ nodejs yarn vips ];
ghostCliVersion = "1.21.1";
builder = ./builder.sh;
}