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 {
pname = "quartz";
version = "4.4.0";
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "alexandria";
version = "0.1.0";
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 = ''
runHook preInstall
npmInstallHook
node ./quartz/bootstrap-cli.mjs build
mkdir -p $out
mv public/ $out/public/
runHook postInstall
'';
}
})