nixpkgs/pkgs/servers/jitsi-excalidraw/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1.0 KiB
Nix
Raw Normal View History

2024-06-18 16:01:19 +00:00
{
lib,
buildNpmPackage,
fetchFromGitHub,
nodejs,
python3,
nix-update-script,
2023-04-22 08:17:12 +00:00
}:
buildNpmPackage rec {
pname = "jitsi-excalidraw-backend";
2024-06-28 18:37:41 +00:00
version = "21";
2023-04-22 08:17:12 +00:00
src = fetchFromGitHub {
owner = "jitsi";
repo = "excalidraw-backend";
rev = "x${version}";
2024-06-28 18:37:41 +00:00
hash = "sha256-52LU5I2pNjSb9+nJjiczp/dLWRTwQDC+thyGXBvkBBA=";
2023-04-22 08:17:12 +00:00
};
npmDepsHash = "sha256-BJqjaqTeg5i+ECGMuiBYVToK2i2XCOVP9yeDFz6nP4k=";
nativeBuildInputs = [ python3 ];
installPhase = ''
mkdir -p $out/share
cp -r {node_modules,dist} $out/share
'';
postFixup = ''
makeWrapper ${nodejs}/bin/node $out/bin/jitsi-excalidraw-backend \
--add-flags dist/index.js \
--chdir $out/share
'';
2024-06-18 16:01:19 +00:00
passthru.updateScript = nix-update-script { };
2023-04-22 08:17:12 +00:00
meta = with lib; {
description = "Excalidraw collaboration backend for Jitsi";
homepage = "https://github.com/jitsi/excalidraw-backend";
license = licenses.mit;
maintainers = with maintainers; [ camillemndn ];
2023-11-23 21:09:35 +00:00
mainProgram = "jitsi-excalidraw-backend";
2023-04-22 08:17:12 +00:00
};
}