Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
37 lines
916 B
Nix
37 lines
916 B
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
stdenv,
|
|
makeWrapper,
|
|
nodejs,
|
|
}:
|
|
buildNpmPackage rec {
|
|
pname = "nextcloud-whiteboard-server";
|
|
version = "1.1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nextcloud";
|
|
repo = "whiteboard";
|
|
tag = "v${version}";
|
|
hash = "sha256-4qk6mAFz7bYWtrlqiVPiyWF4ub4Ks9RhS5oODlOYRvA=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-WHSMK7s6vohphHoNh96yejdwXHBxdkQSpMMNiFS15E4=";
|
|
|
|
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 ];
|
|
mainProgram = "nextcloud-whiteboard-server";
|
|
};
|
|
}
|