2020-05-28 13:03:00 +01:00
|
|
|
{ pkgs, nodePackages, makeWrapper, nixosTests, nodejs, stdenv, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
packageName = with lib; concatStrings (map (entry: (concatStrings (mapAttrsToList (key: value: "${key}-${value}") entry))) (importJSON ./package.json));
|
|
|
|
|
|
|
|
ourNodePackages = import ./node-composition.nix {
|
|
|
|
inherit pkgs nodejs;
|
|
|
|
inherit (stdenv.hostPlatform) system;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
ourNodePackages."${packageName}".override {
|
2021-05-23 22:45:47 +01:00
|
|
|
pname = "matrix-appservice-irc";
|
|
|
|
|
2020-05-28 13:03:00 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper nodePackages.node-gyp-build ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
makeWrapper '${nodejs}/bin/node' "$out/bin/matrix-appservice-irc" \
|
|
|
|
--add-flags "$out/lib/node_modules/matrix-appservice-irc/app.js"
|
|
|
|
'';
|
|
|
|
|
2020-08-30 08:42:21 +01:00
|
|
|
passthru.tests.matrix-appservice-irc = nixosTests.matrix-appservice-irc;
|
|
|
|
|
2020-05-28 13:03:00 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Node.js IRC bridge for Matrix";
|
|
|
|
maintainers = with maintainers; [ piegames ];
|
|
|
|
homepage = "https://github.com/matrix-org/matrix-appservice-irc";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|