package hydrus bot
This commit is contained in:
parent
5d5b6d9402
commit
4a37144a54
|
@ -29,6 +29,7 @@ rec {
|
|||
synapse-admin = pkgs.callPackage ./pkgs/synapse-admin { };
|
||||
# matrix-presents = pkgs.callPackage ./pkgs/matrix-presents { };
|
||||
matrix-wug = pkgs.callPackage ./pkgs/matrix-wug { };
|
||||
matrix-hydrus-bot = pkgs.callPackage ./pkgs/matrix-hydrus-bot { };
|
||||
|
||||
matrix-appservice-minecraft = pkgs.callPackage ./pkgs/matrix-appservice-minecraft { };
|
||||
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
{ lib, mkYarnPackage, fetchFromGitHub }:
|
||||
|
||||
mkYarnPackage {
|
||||
name = "matrix-hydrus-bot";
|
||||
src = fetchFromGitHub {
|
||||
owner = "dali99";
|
||||
repo = "matrix-hydrus-bot";
|
||||
rev = "f85919a96cb6b334f1a68e16609d378dece1e604";
|
||||
sha256 = "0lliw73446h0mc77n5sbp0vql7as0xvjbmqdgc55ajx76lgasj57";
|
||||
};
|
||||
packageJSON = ./package.json;
|
||||
yarnLock = ./yarn.lock;
|
||||
yarnNix = ./yarn.nix;
|
||||
|
||||
preInstall = ''
|
||||
sed -i '1i#!/usr/bin/env node' deps/matrix-hydrus-bot/index.mjs
|
||||
chmod +x deps/matrix-hydrus-bot/index.mjs
|
||||
'';
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"name": "matrix-hydrus-bot",
|
||||
"version": "1.0.0",
|
||||
"description": "Matrix bot that posts images straight from the hydrus api",
|
||||
"bin": "index.mjs",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"axios": "^0.21.1",
|
||||
"matrix-bot-sdk": "^0.5.18"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^15.6.1"
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue