alexandria/site.nix
Youwen Wu 26bc081ace
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
feat: remove useless content, add liminalOS docs
2025-01-02 03:15:46 -08:00

35 lines
666 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.md ./liminalOS-docs_tmp
cat ./liminalOS-docs_tmp ${liminalOSDocs} >> ./content/Hacks/liminalOS.md
rm ./liminalOS-docs_tmp
node ./quartz/bootstrap-cli.mjs build
'';
installPhase = ''
mkdir -p $out
mv public/ $out/public/
'';
})