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
539 B
Nix
17 lines
539 B
Nix
{ lib, mkDiscoursePlugin, fetchFromGitHub }:
|
|
|
|
mkDiscoursePlugin {
|
|
name = "discourse-assign";
|
|
src = fetchFromGitHub {
|
|
owner = "discourse";
|
|
repo = "discourse-assign";
|
|
rev = "7a854fe5046783bcff6cc24fca818056e1b9414a";
|
|
sha256 = "sha256-SGGwj0V4mTXD33tLnH76tQD/f6IvDbacq23XbaRdLsI=";
|
|
};
|
|
meta = with lib; {
|
|
homepage = "https://github.com/discourse/discourse-docs";
|
|
maintainers = with maintainers; [ dpausp ];
|
|
license = licenses.mit;
|
|
description = "Discourse Plugin for assigning users to a topic";
|
|
};
|
|
}
|