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
525 B
Nix
17 lines
525 B
Nix
{ lib, mkDiscoursePlugin, fetchFromGitHub }:
|
|
|
|
mkDiscoursePlugin {
|
|
name = "discourse-solved";
|
|
src = fetchFromGitHub {
|
|
owner = "discourse";
|
|
repo = "discourse-solved";
|
|
rev = "17ba805a06ddfc27c6435eb20c0f8466f1708be8";
|
|
sha256 = "sha256-G48c1khRVnCPXA8ujpDmEzL10uLC9e2sYVLVEXWIk0s=";
|
|
};
|
|
meta = with lib; {
|
|
homepage = "https://github.com/discourse/discourse-solved";
|
|
maintainers = with maintainers; [ talyz ];
|
|
license = licenses.mit;
|
|
description = "Allow accepted answers on topics";
|
|
};
|
|
}
|