mirror of
https://github.com/Ryujinx/Ryujinx-Ldn-Website.git
synced 2024-12-22 16:55:38 +00:00
0337d6eeee
This prepare for flake rewrite Signed-off-by: Mary Guillemard <mary@mary.zone>
29 lines
632 B
Nix
29 lines
632 B
Nix
{ pkgs ? (import <nixpkgs> {})}:
|
|
with pkgs;
|
|
let
|
|
|
|
package = buildNpmPackage {
|
|
pname = "ryujinx-ldn-website";
|
|
version = "1.0.0";
|
|
|
|
#linkDevDependencies = true;
|
|
|
|
src = ./.;
|
|
|
|
npmBuildScript = "release";
|
|
npmBuildFlags = [ "--" "--outDir" "dist" ];
|
|
installPhase = ''
|
|
runHook preInstall
|
|
cp -r dist $out/
|
|
cp -r public package.json package-lock.json node_modules $out/
|
|
|
|
makeWrapper '${nodejs}/bin/node' "$out/bin/ryujinx-ldn-website" --add-flags "$out/index.js"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
npmDepsHash = "sha256-Wo4dGsUAZwXbkuWwTKNA5kv4ZUnekdKm/TagP4Q4Ds8=";
|
|
};
|
|
|
|
in package
|