jitsi-roomsv2/frontend/default.nix

35 lines
860 B
Nix
Raw Normal View History

2025-01-19 11:27:42 +01:00
{
pkgs ? import <nixpkgs> { },
}:
2024-12-28 21:39:23 +01:00
pkgs.buildNpmPackage {
2025-01-19 11:27:42 +01:00
pname = "jitsi-rooms-backendd";
version = "1.0.0";
2024-12-28 21:39:23 +01:00
# Source files (usually the current directory)
2025-01-19 11:27:42 +01:00
src = pkgs.lib.cleanSource ./.;
2024-12-28 21:39:23 +01:00
# Optionally, you can provide a package-lock.json or yarn.lock file
# This ensures dependencies are installed reproducibly.
packageLock = ./package-lock.json; # Use this for npm
# Node.js version (optional, defaults to pkgs.nodejs)
nodejs = pkgs.nodejs-18_x;
npmDepsHash = "sha256-n9SpPPRvu92RwNPDKZ3f1Splbux2IVGhSazJ4DM2IrA=";
# Add any additional arguments for the build process
buildInputs = [ ];
# Specify the build phase, if needed
buildPhase = ''
echo "Building the app..."
npm run build
'';
# Specify the install phase (what to copy to the output)
installPhase = ''
mkdir -p $out
cp -r dist/* $out/
'';
}