2023-07-02 02:05:12 +00:00
|
|
|
{ pkgs ? (import <nixpkgs> {})}:
|
|
|
|
with pkgs;
|
|
|
|
let
|
|
|
|
|
2024-01-01 15:34:03 +00:00
|
|
|
package = buildNpmPackage {
|
|
|
|
pname = "ryujinx-ldn-website";
|
|
|
|
version = "1.0.0";
|
2023-07-02 02:05:12 +00:00
|
|
|
|
2024-01-01 15:34:03 +00:00
|
|
|
#linkDevDependencies = true;
|
2023-07-02 02:05:12 +00:00
|
|
|
|
2024-01-01 15:34:03 +00:00
|
|
|
src = ./.;
|
2023-07-02 02:05:12 +00:00
|
|
|
|
2024-01-01 15:34:03 +00:00
|
|
|
npmBuildScript = "release";
|
|
|
|
npmBuildFlags = [ "--" "--outDir" "dist" ];
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
cp -r dist $out/
|
|
|
|
cp -r public package.json package-lock.json node_modules $out/
|
2023-07-02 02:05:12 +00:00
|
|
|
|
2024-01-01 15:34:03 +00:00
|
|
|
makeWrapper '${nodejs}/bin/node' "$out/bin/ryujinx-ldn-website" --add-flags "$out/index.js"
|
2023-07-02 02:05:12 +00:00
|
|
|
|
2024-01-01 15:34:03 +00:00
|
|
|
runHook postInstall
|
2023-07-02 02:05:12 +00:00
|
|
|
'';
|
|
|
|
|
2024-01-01 15:34:03 +00:00
|
|
|
npmDepsHash = "sha256-Wo4dGsUAZwXbkuWwTKNA5kv4ZUnekdKm/TagP4Q4Ds8=";
|
2023-07-02 02:05:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
in package
|