feat: switch to pnpm

This commit is contained in:
Youwen Wu 2024-12-29 14:13:54 -08:00
parent 57606c93e3
commit ca0047ad5c
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
3 changed files with 5871 additions and 8625 deletions

8610
package-lock.json generated

File diff suppressed because it is too large Load diff

5850
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,24 +1,30 @@
{ {
buildNpmPackage, stdenvNoCC,
... nodejs,
pnpm,
}: }:
buildNpmPackage { stdenvNoCC.mkDerivation (finalAttrs: {
pname = "quartz"; pname = "alexandria";
version = "4.4.0"; version = "0.1.0";
src = ./.; src = ./.;
dontNpmBuild = true;
makeCacheWritable = true;
npmDepsHash = "sha256-zMabk+Tynp7VhFc9M9dNqix33Hm3lAb4CqcEMoHzrz0="; nativeBuildInputs = [
nodejs
pnpm.configHook
];
pnpmDeps = pnpm.fetchDeps {
inherit (finalAttrs) pname version src;
hash = "sha256-HXsgQUY9pB4ZFjInAbeye87w8+UL2npodKgnNg697LM=";
};
buildPhase = ''
node ./quartz/bootstrap-cli.mjs build
'';
installPhase = '' installPhase = ''
runHook preInstall mkdir -p $out
npmInstallHook
node ./quartz/bootstrap-cli.mjs build
mv public/ $out/public/ mv public/ $out/public/
runHook postInstall
''; '';
} })