alexandria/site.nix
2024-12-29 14:13:54 -08:00

30 lines
485 B
Nix

{
stdenvNoCC,
nodejs,
pnpm,
}:
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 = ''
node ./quartz/bootstrap-cli.mjs build
'';
installPhase = ''
mkdir -p $out
mv public/ $out/public/
'';
})