packages/ghost: init at 4.32.3
This commit is contained in:
parent
460c50adbb
commit
8e7b305280
3 changed files with 17455 additions and 1 deletions
34
packages/dream2nix-overrides/nodejs/default.nix
Normal file
34
packages/dream2nix-overrides/nodejs/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
|
||||||
|
# dream2nix
|
||||||
|
satisfiesSemver,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
sharp.build = with pkgs; {
|
||||||
|
nativeBuildInputs = old: old ++ [
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
buildInputs = old: old ++ [
|
||||||
|
vips
|
||||||
|
];
|
||||||
|
};
|
||||||
|
ghost.build = {
|
||||||
|
# zip comes pre-built
|
||||||
|
runBuild = "";
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkgs.makeWrapper
|
||||||
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
makeWrapper $(command -v node) $out/bin/ghost \
|
||||||
|
--add-flags "index.js" \
|
||||||
|
--run "cd $out/lib/node_modules/ghost" \
|
||||||
|
--set NODE_PATH "$out/lib/node_modules/ghost/node_modules"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,4 +1,27 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, inputs, ... }:
|
||||||
|
let
|
||||||
|
inherit (pkgs) system;
|
||||||
|
dream2nix = inputs.dream2nix.lib.init {
|
||||||
|
systems = [ system ];
|
||||||
|
config.overridesDirs = [ ./dream2nix-overrides ];
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
ghost = (dream2nix.riseAndShine {
|
||||||
|
source = ./servers/ghost/dream-lock.json;
|
||||||
|
sourceOverrides = oldSources: let
|
||||||
|
version = "4.32.3";
|
||||||
|
in {
|
||||||
|
|
||||||
|
# building ghost ourselves is a pain in the ass, so just use the zip
|
||||||
|
"ghost"."${version}" = pkgs.fetchzip {
|
||||||
|
url = "https://github.com/TryGhost/Ghost/releases/download/v${version}/Ghost-${version}.zip";
|
||||||
|
sha256 = "sha256-XneO6es3eeJz4v1JnWtUfm27zwUW2Wy3hTIHUF7UrFc=";
|
||||||
|
stripRoot = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}).defaultPackage.${system};
|
||||||
|
|
||||||
hyprspace = pkgs.callPackage ./networking/hyprspace { iproute2mac = null; };
|
hyprspace = pkgs.callPackage ./networking/hyprspace { iproute2mac = null; };
|
||||||
|
|
||||||
privatevoid-smart-card-ca-bundle = pkgs.callPackage ./data/privatevoid-smart-card-certificate-authority-bundle.nix { };
|
privatevoid-smart-card-ca-bundle = pkgs.callPackage ./data/privatevoid-smart-card-certificate-authority-bundle.nix { };
|
||||||
|
|
17397
packages/servers/ghost/dream-lock.json
Normal file
17397
packages/servers/ghost/dream-lock.json
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue