mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:13:33 +00:00
33 lines
830 B
Nix
33 lines
830 B
Nix
{ pkgs, nodejs, stdenv, fetchFromGitHub, lib, ... }:
|
|
let
|
|
src = fetchFromGitHub {
|
|
owner = "matrix-org";
|
|
repo = "matrix-appservice-slack";
|
|
rev = "1.8.0";
|
|
sha256 = "sha256-FA6SMivMnloeZmnUhGx6N+ZLDTZFO3y17xJYclkp5w0=";
|
|
};
|
|
|
|
nodePackages = import ./node-composition.nix {
|
|
inherit pkgs nodejs;
|
|
inherit (stdenv.hostPlatform) system;
|
|
};
|
|
in
|
|
nodePackages.package.override {
|
|
pname = "matrix-appservice-slack";
|
|
|
|
inherit src;
|
|
|
|
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; [ beardhatcode ];
|
|
license = licenses.asl20;
|
|
};
|
|
}
|