mirror of
https://github.com/Ryujinx/Ryujinx-Ldn-Website.git
synced 2024-12-22 18:15:39 +00:00
e10b3ea871
* Bump prettier from 2.8.8 to 3.0.0 Bumps [prettier](https://github.com/prettier/prettier) from 2.8.8 to 3.0.0. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.8.8...3.0.0) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Update pnpm2nix version to v0.2 This ensures compatibility with lockfile version 6.0 and 6.1 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: TSR Berry <20988865+TSRBerry@users.noreply.github.com>
47 lines
1 KiB
Nix
47 lines
1 KiB
Nix
{ pkgs ? (import <nixpkgs> {})}:
|
|
with pkgs;
|
|
with (import (fetchFromGitHub {
|
|
owner = "TSRBerry";
|
|
repo = "pnpm2nix";
|
|
rev = "v0.2";
|
|
sha256 = "1az22kj0q37xgwi47zjyimwvqn1a5spx60mf30aya7s63x0r8xzc";
|
|
}) { inherit pkgs; });
|
|
|
|
|
|
let
|
|
|
|
buildPackage = mkPnpmPackage {
|
|
src = nix-gitignore.gitignoreSource [] ./.;
|
|
|
|
linkDevDependencies = true;
|
|
|
|
postBuild = ''
|
|
cp -R "node_modules/$pname"/* ./
|
|
|
|
export PATH="node_modules/.bin:$PATH"
|
|
|
|
mkdir -p "$out/dist"
|
|
|
|
npm run build -- --outDir "$out/dist"
|
|
mv public package.json pnpm-lock.yaml "$out/"
|
|
'';
|
|
|
|
postInstall = ''
|
|
rm -rf "$out/bin" "$lib/node_modules/$pname"
|
|
'';
|
|
};
|
|
|
|
package = mkPnpmPackage {
|
|
src = buildPackage;
|
|
|
|
postInstall = ''
|
|
mv "$lib/node_modules/$pname/dist" "$lib/node_modules/$pname/public" "$lib/node_modules/$pname/package.json" "$out/"
|
|
rm -rf "$lib/node_modules/$pname"
|
|
|
|
ln -s "$lib/node_modules" "$out/node_modules"
|
|
ln -s "$npm_config_nodedir/bin/node" "$out/bin/node"
|
|
'';
|
|
};
|
|
|
|
in package
|