Skip to content

Commit d7601fb

Browse files
Add readme, fix nix
1 parent e77adc2 commit d7601fb

File tree

3 files changed

+30
-8
lines changed

3 files changed

+30
-8
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.env
2-
result/
2+
result
33
dist
44
node_modules
55
.idea

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Element Call on RoomOS
2+
3+
A macro to integrate Element Call in RoomOS.
4+
5+
---
6+
7+
***NOTE:*** a nix shell environment is included for your convenience, run `nix `
8+
9+
How to build:
10+
```shell
11+
npm run build
12+
# Copy dist/module.js into a macro, save and activate
13+
```
14+
15+
How to test:
16+
```shell
17+
# Create .env:
18+
# ROOMKIT_URL=wss://someaddress/
19+
# ROOMKIT_USER=user
20+
# ROOMKIT_PASS=password
21+
npm run dev
22+
```

flake.nix

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
{
2525
packages = {
2626
default = pkgs.buildNpmPackage {
27-
pname = "cisco-element-call-macro";
28-
name = "cisco-element-call-macro";
27+
pname = "cisco-element-call";
28+
name = "cisco-element-call";
2929

3030
meta = with lib; {
3131
description = "A call to host element call on a Cisco WebEx device.";
32-
homepage = "https://github.com/spacebarchat/server";
33-
license = licenses.agpl3Plus;
32+
homepage = "https://github.com/TheArcaneBrony/cisco-element-call";
33+
#license = licenses.agpl3Plus;
3434
platforms = platforms.all;
35-
mainProgram = "exec";
35+
mainProgram = "start-macro";
3636
};
3737

3838
src = ./.;
@@ -50,8 +50,8 @@
5050
find node_modules -maxdepth 1 -type d -empty -delete
5151
5252
mkdir -p $out
53-
cp -r assets dist node_modules package.json $out/
54-
makeWrapper ${pkgs.nodejs}/bin/node $out/bin/start-macro --prefix NODE_PATH : $out/node_modules --add-flags $out/$i
53+
cp -r dist node_modules package.json $out/
54+
makeWrapper ${pkgs.nodejs}/bin/node $out/bin/start-macro --prefix NODE_PATH : $out/node_modules --add-flags $out/dist/index.js
5555
5656
set +x
5757
runHook postInstall

0 commit comments

Comments
 (0)