feat: switch to pnpm
This commit is contained in:
parent
57606c93e3
commit
ca0047ad5c
3 changed files with 5871 additions and 8625 deletions
8610
package-lock.json
generated
8610
package-lock.json
generated
File diff suppressed because it is too large
Load diff
5850
pnpm-lock.yaml
Normal file
5850
pnpm-lock.yaml
Normal file
File diff suppressed because it is too large
Load diff
36
site.nix
36
site.nix
|
@ -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
|
|
||||||
'';
|
'';
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue