Skip to content

Commit

Permalink
nextcloud-whiteboard-server: init at 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
onny committed Sep 25, 2024
1 parent 6b596ed commit ff211ce
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pkgs/by-name/ne/nextcloud-whiteboard-server/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
stdenv,
makeWrapper,
nodejs,
}:
buildNpmPackage rec {
pname = "nextcloud-whiteboard-server";
version = "1.0.2";

src = fetchFromGitHub {
owner = "nextcloud";
repo = "whiteboard";
rev = "refs/tags/v${version}";
hash = "sha256-RoizzsSQHe2Tw52VcaqTGjbLS50VgTxk09yTIqkoyh4=";
};

npmDepsHash = "sha256-RZoMvDwTANdMm0+Z4SU2ifz7FgXQH+NdrKNspudgQTY=";

nativeBuildInputs = [ makeWrapper ];

postInstall = ''
makeWrapper ${lib.getExe nodejs} "$out/bin/nextcloud-whiteboard-server" \
--add-flags "$out/lib/node_modules/whiteboard/websocket_server/main.js"
'';

meta = {
description = "Backend server for the Nextcloud Whiteboard app";
homepage = "https://apps.nextcloud.com/apps/whiteboard";
license = lib.licenses.agpl3Plus;
maintainers = [ lib.maintainers.onny ];
};
}

0 comments on commit ff211ce

Please sign in to comment.