nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, mkDiscoursePlugin, fetchFromGitHub }:
2
3mkDiscoursePlugin {
4 name = "discourse-voting";
5 src = fetchFromGitHub {
6 owner = "discourse";
7 repo = "discourse-voting";
8 rev = "d9cab9664263e75d46533fb83586ce88cb2b6cfe";
9 sha256 = "sha256-cKbsc2ZPXaU4CAzM+oqwbs93l3NMrOGw4IBZLVZIDyw=";
10 };
11 meta = with lib; {
12 homepage = "https://github.com/discourse/discourse-voting";
13 maintainers = with maintainers; [ dpausp ];
14 license = licenses.gpl2Only;
15 description = "Adds the ability for voting on a topic within a specified category in Discourse";
16 };
17}