alexandria/site.nix
Youwen Wu 25cc84a25c
Some checks are pending
Deploy Quartz site to GitHub Pages using Nix / build (push) Waiting to run
Deploy Quartz site to GitHub Pages using Nix / deploy (push) Blocked by required conditions
fix: correct paths of liminalOS docs
2025-01-02 03:18:12 -08:00

35 lines
676 B
Nix

{
stdenvNoCC,
nodejs,
pnpm,
liminalOSDocs,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "alexandria";
version = "0.1.0";
src = ./.;
nativeBuildInputs = [
nodejs
pnpm.configHook
];
pnpmDeps = pnpm.fetchDeps {
inherit (finalAttrs) pname version src;
hash = "sha256-HXsgQUY9pB4ZFjInAbeye87w8+UL2npodKgnNg697LM=";
};
buildPhase = ''
mv ./content/Hacks/liminalOS-docs.md ./liminalOS-docs_tmp
cat ./liminalOS-docs_tmp ${liminalOSDocs} >> ./content/Hacks/liminalOS-docs.md
rm ./liminalOS-docs_tmp
node ./quartz/bootstrap-cli.mjs build
'';
installPhase = ''
mkdir -p $out
mv public/ $out/public/
'';
})