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
597 B
Nix
17 lines
597 B
Nix
{ lib, mkDiscoursePlugin, fetchFromGitHub }:
|
|
|
|
mkDiscoursePlugin {
|
|
name = "discourse-canned-replies";
|
|
src = fetchFromGitHub {
|
|
owner = "discourse";
|
|
repo = "discourse-canned-replies";
|
|
rev = "18af3367d9eda8842e8ff0de96c90aa2f0bdb0a3";
|
|
sha256 = "sha256-v8QOR0/9RUJ1zFmzhKYe/GEev3Jl4AlXWkQyuquyuJY=";
|
|
};
|
|
meta = with lib; {
|
|
homepage = "https://github.com/discourse/discourse-canned-replies";
|
|
maintainers = with maintainers; [ talyz ];
|
|
license = licenses.gpl2Only;
|
|
description = "Adds support for inserting a canned reply into the composer window via a UI";
|
|
};
|
|
}
|