-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nextcloud-whiteboard-server: init at 1.0.4
- Loading branch information
Showing
4 changed files
with
103 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.4"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "nextcloud"; | ||
repo = "whiteboard"; | ||
rev = "refs/tags/v${version}"; | ||
hash = "sha256-27w8FZz9PbVdYV7yR5iRXi5edw7U/3bLVYfdRa8yPzo="; | ||
}; | ||
|
||
npmDepsHash = "sha256-SwFQRDRo7Q8+0zYWx5szahJzDSoxkkJDPQ3qEdNLVaE="; | ||
|
||
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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.