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
578 B
Nix
17 lines
578 B
Nix
{ lib, mkDiscoursePlugin, fetchFromGitHub }:
|
|
|
|
mkDiscoursePlugin {
|
|
name = "discourse-voting";
|
|
src = fetchFromGitHub {
|
|
owner = "discourse";
|
|
repo = "discourse-voting";
|
|
rev = "1da667721269ca01ef53c35ec0470486b490e72c";
|
|
sha256 = "sha256-VCMv6YWHY24v9KyO4q0YSSYK+mszOVqP46slOh8okvY=";
|
|
};
|
|
meta = with lib; {
|
|
homepage = "https://github.com/discourse/discourse-voting";
|
|
maintainers = with maintainers; [ dpausp ];
|
|
license = licenses.gpl2Only;
|
|
description = "Adds the ability for voting on a topic within a specified category in Discourse";
|
|
};
|
|
}
|