Merge pull request #70753 from kampka/matrix-appservice-slack
matrix-appservice-slack: init at 1.0.1
This commit is contained in:
commit
c51a4801f4
@ -0,0 +1,25 @@
|
|||||||
|
{ pkgs, nodejs, stdenv, lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
packageName = with lib; concatStrings (map (entry: (concatStrings (mapAttrsToList (key: value: "${key}-${value}") entry))) (importJSON ./package.json));
|
||||||
|
|
||||||
|
nodePackages = import ./node-composition.nix {
|
||||||
|
inherit pkgs nodejs;
|
||||||
|
inherit (stdenv.hostPlatform) system;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
nodePackages."${packageName}".override {
|
||||||
|
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
makeWrapper '${nodejs}/bin/node' "$out/bin/matrix-appservice-slack" \
|
||||||
|
--add-flags "$out/lib/node_modules/matrix-appservice-slack/lib/app.js"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A Matrix <--> Slack bridge";
|
||||||
|
maintainers = with maintainers; [ kampka ];
|
||||||
|
license = licenses.asl20;
|
||||||
|
};
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
#!/usr/bin/env nix-shell
|
||||||
|
#! nix-shell -i bash -p nodePackages.node2nix
|
||||||
|
|
||||||
|
node2nix \
|
||||||
|
--nodejs-10 \
|
||||||
|
--node-env ../../../development/node-packages/node-env.nix \
|
||||||
|
--development \
|
||||||
|
--input package.json \
|
||||||
|
--output node-packages.nix \
|
||||||
|
--composition node-composition.nix
|
@ -0,0 +1,17 @@
|
|||||||
|
# This file has been generated by node2nix 1.7.0. Do not edit!
|
||||||
|
|
||||||
|
{pkgs ? import <nixpkgs> {
|
||||||
|
inherit system;
|
||||||
|
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-10_x"}:
|
||||||
|
|
||||||
|
let
|
||||||
|
nodeEnv = import ../../../development/node-packages/node-env.nix {
|
||||||
|
inherit (pkgs) stdenv python2 utillinux runCommand writeTextFile;
|
||||||
|
inherit nodejs;
|
||||||
|
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
import ./node-packages.nix {
|
||||||
|
inherit (pkgs) fetchurl fetchgit;
|
||||||
|
inherit nodeEnv;
|
||||||
|
}
|
3678
pkgs/servers/matrix-synapse/matrix-appservice-slack/node-packages.nix
generated
Normal file
3678
pkgs/servers/matrix-synapse/matrix-appservice-slack/node-packages.nix
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,3 @@
|
|||||||
|
[
|
||||||
|
{"matrix-appservice-slack": "git+https://github.com/matrix-org/matrix-appservice-slack.git#1.0.1" }
|
||||||
|
]
|
@ -4369,6 +4369,8 @@ in
|
|||||||
|
|
||||||
matrix-synapse = callPackage ../servers/matrix-synapse { };
|
matrix-synapse = callPackage ../servers/matrix-synapse { };
|
||||||
|
|
||||||
|
matrix-appservice-slack = callPackage ../servers/matrix-synapse/matrix-appservice-slack {};
|
||||||
|
|
||||||
mautrix-telegram = recurseIntoAttrs (callPackage ../servers/mautrix-telegram { });
|
mautrix-telegram = recurseIntoAttrs (callPackage ../servers/mautrix-telegram { });
|
||||||
|
|
||||||
mautrix-whatsapp = callPackage ../servers/mautrix-whatsapp { };
|
mautrix-whatsapp = callPackage ../servers/mautrix-whatsapp { };
|
||||||
|
Loading…
Reference in New Issue
Block a user