matrix-appservice-slack: init at 1.0.1

This commit is contained in:
Christian Kampka
2019-10-08 15:16:31 +02:00
parent 261fb1b443
commit 6473d9ffb5
6 changed files with 3735 additions and 0 deletions
@@ -0,0 +1,24 @@
{ 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;
};
}