https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
17 lines
599 B
Nix
17 lines
599 B
Nix
{ lib, mkDiscoursePlugin, fetchFromGitHub }:
|
|
|
|
mkDiscoursePlugin {
|
|
name = "discourse-chat-integration";
|
|
src = fetchFromGitHub {
|
|
owner = "discourse";
|
|
repo = "discourse-chat-integration";
|
|
rev = "eaa7de8c2b659d107c2b16ac0d469592aff79d7c";
|
|
sha256 = "sha256-7anXDbltMBM22dBnE5FFwNk7IJEUFZgDzR4Q/AYn6ng=";
|
|
};
|
|
meta = with lib; {
|
|
homepage = "https://github.com/discourse/discourse-chat-integration";
|
|
maintainers = with maintainers; [ dpausp ];
|
|
license = licenses.mit;
|
|
description = "This plugin integrates Discourse with a number of external chatroom systems";
|
|
};
|
|
}
|