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 {
|
||||
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
|
||||
'';
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue