2024-12-29 03:00:01 -08:00
|
|
|
{
|
2024-12-29 14:13:54 -08:00
|
|
|
stdenvNoCC,
|
|
|
|
nodejs,
|
|
|
|
pnpm,
|
2024-12-29 03:00:01 -08:00
|
|
|
}:
|
2024-12-29 14:13:54 -08:00
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
|
|
pname = "alexandria";
|
|
|
|
version = "0.1.0";
|
2024-12-29 03:00:01 -08:00
|
|
|
|
|
|
|
src = ./.;
|
|
|
|
|
2024-12-29 14:13:54 -08:00
|
|
|
nativeBuildInputs = [
|
|
|
|
nodejs
|
|
|
|
pnpm.configHook
|
|
|
|
];
|
2024-12-29 03:00:01 -08:00
|
|
|
|
2024-12-29 14:13:54 -08:00
|
|
|
pnpmDeps = pnpm.fetchDeps {
|
|
|
|
inherit (finalAttrs) pname version src;
|
|
|
|
hash = "sha256-HXsgQUY9pB4ZFjInAbeye87w8+UL2npodKgnNg697LM=";
|
|
|
|
};
|
2024-12-29 03:00:01 -08:00
|
|
|
|
2024-12-29 14:13:54 -08:00
|
|
|
buildPhase = ''
|
2024-12-29 03:00:01 -08:00
|
|
|
node ./quartz/bootstrap-cli.mjs build
|
2024-12-29 14:13:54 -08:00
|
|
|
'';
|
2024-12-29 03:00:01 -08:00
|
|
|
|
2024-12-29 14:13:54 -08:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
mv public/ $out/public/
|
2024-12-29 03:00:01 -08:00
|
|
|
'';
|
2024-12-29 14:13:54 -08:00
|
|
|
})
|